[Gambas-user] static const?

Fabián Flores Vadell fabianfloresvadell at ...626...
Tue Apr 13 17:18:18 CEST 2010


Hi everybody.

Well, all us knows that a constant is something that can't change.
Then, constants would be class members. So, when a class is
instantiated, constants should be shared by all instances.

The online help exclude the use of STATIC keyword in the declaration
of constants, so the STATIC keyword would be innecesary. Is this
really the case or is it necessary to declare the constants by the
STATIC keyword? (STATIC [PUBLIC | PRIVATE] CONST)

-- 
Fabián Flores Vadell
www.speedbooksargentina.blogspot.com




More information about the User mailing list