M
Michael Søndergaard
I can't seem to figure this one out.
I have a list of objects containing objects like A, B, C. I also have
another object D which referer object A.
At some point in my code I need to delete the reference to object A in obj
D, so I do this D.A = null;
The question is does this only delete the reference to A or does it also
delete the object by invoking the destructor of object A. Or am I saved by
the fact, that a reference still exists to object A, because it is contained
in the list object.
Thanks
Michael Søndergaard
I have a list of objects containing objects like A, B, C. I also have
another object D which referer object A.
At some point in my code I need to delete the reference to object A in obj
D, so I do this D.A = null;
The question is does this only delete the reference to A or does it also
delete the object by invoking the destructor of object A. Or am I saved by
the fact, that a reference still exists to object A, because it is contained
in the list object.
Thanks
Michael Søndergaard