[Gambas-user] Do embeded objects get released too upon destruction ?
tobias
tobiasboe1 at ...20...
Sat Jul 23 20:36:30 CEST 2011
On 23.07.2011 20:29, nando wrote:
> Ok, so the following line...
>
> DIM Q AS NEW myClass[5]
>
> would need...
>
> FOR i = 0 TO 4
> myClass[i] = NEW myClass
> NEXT
>
>
> to instantiate each myClass object.
>
> The _init would then execute creating the string objects
>
> Does this line...
>
> myClass[5] = NULL
>
> do a deep unreference to the embedded strings too?
>
it's not really related to your problem but _init isn't called on
instanciation but only when the class is loaded, which happens at most
once. you may want _new...
but i can't answer your question...
More information about the User
mailing list