[Gambas-user] Question on string[]

Laurent Carlier lordheavy at ...512...
Tue Dec 14 13:17:33 CET 2004


Le Mardi 14 Décembre 2004 11:20, Benoit Minisini a écrit :
>
> Mmm... No.
>
> myArray points at a String[] object. At start, myArray is NULL. Each time
> you call myProcedure(), you create a new String[] object, and make myArray
> points at this new array object. The old one is destroyed, provided that no
> other variable has a reference on it.
>
> Regards,

On this way, let's imagine something like that :

dim toto as new foo   (foo is an object)

this return a foo object :

foo = createfoo("test")

does the old one is destroyed (freed) ?

Regards,

-- 

Laurent Carlier




More information about the User mailing list