[Gambas-user] static ? in variables

adamnt42 at ...626... adamnt42 at ...626...
Fri Jun 16 12:55:30 CEST 2017


On Fri, 16 Jun 2017 12:38:50 +0200
Tobias Boege <taboege at ...626...> wrote:

> Can you give a full project? The attached project contains everything
> you said about your class, and it works. It is instantiable. Is the
> *error message* really that the class cannot be instantiated or is
> there another error which just prevents objects from being created,
> e.g. you use the "status" variable in the _new method?        <-----------?
> 
> Regards,
> Tobi
> 
> -- 
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk

Eh? You can use static variables in dynamic methods... or Constants would never work.
(You cannot access dynamic variables from static methods.)

b
-- 
B Bruen <adamnt42 at ...3379... (sort of)>




More information about the User mailing list