Something simple like this:
Code: Select all
a := MyClass.New()
b := MyClass.New()
a.Link := b
b.Link := a
Sorry if this doesn't make sense. I've been awake too long.
Code: Select all
a := MyClass.New()
b := MyClass.New()
a.Link := b
b.Link := a
no they wont be, and if u for some reason lose ur only handle to those objects, u will have leaked them. there is more(although not much) on circular references in the documentation, somewhereIf both objects are created and linked inside of a function as local variables, will both objects be released when it exits while still linked together this way?