[Gambas-user] Object.Attach & Object.Detach
Benoit Minisini
gambas at ...1...
Sat Sep 20 21:47:01 CEST 2008
On samedi 20 septembre 2008, Kari Laine wrote:
> On Sat, Sep 20, 2008 at 8:50 PM, Benoit Minisini <
>
> gambas at ...1...> 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
More information about the User
mailing list