At 4:47 PM -0500 3/6/03, you wrote:
Simple one...

I have a list-reference added to another list, and I delete the original
list, yet
the reference still exists?

you don't have a list reference -you have a dupl() - see below



What happens to list references when the list it is referencing is deleted? Is there any way to update these references so garbage collection can do its thing?

Here is an example... even though I set the value to be void, the sound
still
plays... still must have a reference to the member ~somewhere~

The Code:
-------------------------------
sound(1).setPlaylist([])

myReg=[:]
myReg[#one]=[:]
myReg[#one][#member] = member("EndMusic2Loop","audio")


sound(1).queue(myReg[#one]) put sound(1).getPlaylist()

the playlist is not a referenced list.
When you load it up, it makes copies of what it needs (in this case a member reference).


hth
-Buzz


myReg[#one][#member] = void myReg.deleteProp(#one) put myReg

put sound(1).getPlaylist()

sound(1).play()
-------------------------------

-------------------------------
Outputs:
-- [[#member: (member 2 of castLib 8)]]
-- [:]
-- [[#member: <Void>]]
-------------------------------


Spooky... Any suggestions?

Thanks,
Mathew



[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to