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)
Change History (7)
Changed 14 years ago by
comment:1 Changed 14 years ago by
Owner: | changed from hannes to Oleksandr |
---|
comment:2 Changed 14 years ago by
Owner: | changed from Oleksandr to hannes |
---|
comment:3 Changed 14 years ago by
Milestone: | → Releases 3-1-1 and higher |
---|
comment:4 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
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.
test source