[Gambas-user] static const?
Benoît Minisini
gambas at ...1...
Tue Apr 13 18:33:16 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)
No STATIC with CONST. Or maybe the compiler is more tolerant than that?
--
Benoît Minisini
More information about the User
mailing list