On samedi 20 septembre 2008, Kari Laine wrote: > On Sat, Sep 20, 2008 at 8:50 PM, Benoit Minisini < > > [EMAIL PROTECTED]> wrote: > > See Object.Parent(). > > > > Thanks - feeling stupid... > > But when Object.Detach is usable. What is it's purpose in Gambas? > Because now I just changed event-handlers. I did not have to call > Object.Detach there in between.
Why should you? Object.Detach() is there only for symetrical purpose, and is not really useful. > And if Object.Detach does not return the > old handler. Do I then leak something? If you can leak something in Gambas, then it is a bug. Unless you use extern functions or do circular references of course. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user