> Yes, it is what I thinked... it is simply a matter of explanations. The > best would be to have a uniform mechanism (and, in fact, it is already > so, but it could seem unclear). What I want to say is: in object pascal, > there is no automatic freeing of objects, but when you destroy an object > which owns other objects, they are destroyed too (this makes sense). It > does not matter if objects are GUI or non-GUI, the behaviour is always > the same: if you don't touch them, they live. If you destroy them, they > die. This is uniform. In gambas this is not possible, because if you > instantiate a label at runtime, and then exit the routine, you don't > want your label to be destroyed. But if instead of a label you > instantiate a Collection, then you loose it, and probably this is what > you want. Problem is, this is not uniform -
Just because a GUI widget is owned by its parent, and a GUI top-level window is owned by a window list. Otherwise things are uniform. :-) -- Benoît ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user