Strange! Then there must have been bug for a while that didn't allow to do that... or I don't know how I learned it otherwise!
Jussi 2011/8/26 Benoît Minisini <[email protected]> > > > It is not setting a different object reference to the same variable, it > > > is removing the object reference from the variable. > > > > > > "a" is a pointer to an instance of a newly instantiated Class1 object. > > > Setting "a" to null is perfectly valid. "a" then no longer points to an > > > instance. Therefore the object reference count is decremented (in this > > > case to 0, so the object memory can be freed). > > > > I'm OK with this, it just created confusion as it was not allowed > earlier. > > > > It was allowed since the first line of code of Gambas 1, and it is allowed > in > all object oriented languages I know. :-) > > -- > Benoît Minisini > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
