[Newbies] Smalltalk constants

Delyan Kalchev delyank at gmail.com
Wed Nov 5 09:43:38 UTC 2008


Hi,

Is there a good way to create a named constant in Smalltalk. For
example the name MyNamedConstant to be constant bind to the number 2
or even to a non-constant object, like the pseudo-variables nil or
true are bind to their objects and the programmer cannot change them
to point to other objects.

Thanks


More information about the Beginners mailing list