[Gambas-user] STATIC doesn't work?
Eilert
eilert-sprachen at ...221...
Thu Mar 18 10:14:14 CET 2004
Hi Benoit,
>>STATIC x AS INTEGER
> At the moment, in Gambas, you can't define static local variables. You must
> use a class or module private variable instead. Actually, static local
Rethinking the item and browsing through the original VB code, I find a
contradiction: is it sensible to have a variable declared as STATIC for
a module? When declared with DIM the variable will live and hold its
value for the whole time the program is running (i. e. the module/class
is loaded) anyway. Or is this "VB thinking"? :-)
Rolf
More information about the User
mailing list