Opened 14 years ago

Closed 13 years ago

#46 closed bug (worksforme)

problem with ring variables in subroutines

Reported by: Oleksandr Owned by: hannes
Priority: major Milestone: 3-1-1
Component: singular-kernel Version:
Keywords: listvar, ring, variables, procs Cc:

Description

There is a problem in using ring variables (ideals etc.) in subroutines when these variables were not exported and ring was suppled as an argument, see attachments.

note that listvar(); still lists them but they appear to be undefined! therefore it's likely to be a bug.

Attachments (3)

test.sing (964 bytes) - added by Oleksandr 14 years ago.
test source
21 CET 2008.out (9.1 KB) - added by Oleksandr 14 years ago.
Singular-3-1 output on murrumesh
ringVarsInProc.res (6.1 KB) - added by Oleksandr 14 years ago.
a bit clearer results

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by Oleksandr

Attachment: test.sing added

test source

Changed 14 years ago by Oleksandr

Attachment: 21 CET 2008.out added

Singular-3-1 output on murrumesh

Changed 14 years ago by Oleksandr

Attachment: ringVarsInProc.res added

a bit clearer results

comment:1 Changed 14 years ago by seelisch

Owner: changed from hannes to Oleksandr

comment:2 Changed 14 years ago by seelisch

Owner: changed from Oleksandr to hannes

comment:3 Changed 14 years ago by seelisch

Milestone: Releases 3-1-1 and higher

comment:4 Changed 13 years ago by hannes

Resolution: worksforme
Status: newclosed

All local variables will be removed at the end of a procedure. This applies also to the ring AND to the objects in that ring. Objects from a ring can only survive, if both the ring and the object are global (exported). Seems to apply to this ticket (example is difficult to understand)

Note: See TracTickets for help on using tickets.