[Gambas-user] garbage collector

Benoît Minisini gambas at ...1...
Tue Mar 18 17:16:45 CET 2003


Le Lundi 17 Mars 2003 23:47, Jochen Georges a écrit :
> hello gambasians
>
> i just know java, so i do not know how to use destructors ...
>
> do i have to use destructors in gambas or is there something like a
> garbage collector?

There is no garbage collector. Objects are destroyed just when nothing 
references them. You must be careful only with circular references, that 
prevents objects for being freed.

>
> if i have to use destructors, how do i have to use them?
> could anybody give me a hint, where i can get help?

Destructors are called when objects are destroyed. They are rarely used in 
Gambas. Logically, you must do in the destructor the contrary of what you did 
in the constructor.

>
> thanks
>
> beste gruesse
> jochen
>
>

Regards,

-- 
Benoît Minisini
mailto:gambas at ...1...




More information about the User mailing list