[Gambas-user] Unix Date conversion
Benoit Minisini
gambas at ...1...
Mon Jul 31 14:29:10 CEST 2006
On Saturday 29 July 2006 17:42, Timothy Marshal-Nichols wrote:
>
> But "_exit" does not appear to *ever* get called. If you add:
>
> STATIC PUBLIC SUB _exit()
> PRINT "Static Destructor"
> END
>
> to a class you never see the text printed! So how can you use this method?
>
> (Slipped of the subject of UNIX data a bit.)
>
Actually you are right. I disabled _exit() and _free() when the class is
written in Gambas.
I disabled _free(), because it was executed in a context where not everything
is possible: the object is being destroyed, but what happens if you reference
it again? And what happens is an error is raised inside _free()? And so on...
I disabled _exit(), for about the same reasons, as _exit() is for class what
_free() is for objects.
I have no solution at the moment for this bad non symmetrical design :-(
Regards,
--
Benoit Minisini
More information about the User
mailing list