[Gambas-user] Create Static and _call

Benoît Minisini gambas at ...1...
Mon Jan 5 00:02:41 CET 2015


Le 04/01/2015 23:26, Tobias Boege a écrit :
> Hi Benoit,
>
> there is a behaviour which bothers me for some time. If I create a class
> MyClass, make it Create Static and define a (non-static) Public Sub _call,
> I cannot use
>
>    MyClass()
>
> The interpreter throws "MyClass._call is not static". I can still use
>
>    MyClass._call()
>
> but that doesn't look cool enough. Can the interpreter be made more clever
> about this (or am I doing a forbidden thing)?
>
> Regards,
> Tobi
>

It's a bug. It's fixed in revision #6809.

Regards,

-- 
Benoît Minisini




More information about the User mailing list