[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

0 constants



I just added a bunch of smalltalk global constants (read "variables")
for zeroz of differrent types.  We will have a corresponding set of
global constants in C++, with the appropriate types.  This will solve
the almost undetectable overloading errors when you have a function
that overloads on integerVars and Heapers, and you call it with the 0
constant.

IntegerVar0
Integer0
UInt40
Int40
Long0
Int0
NULL

I threw NULL onto the list because that's how you get a 0 pointer.
The translator will now print a warning if you use a raw '0' in an
expression.  Please gradually change all the modules for which you are
responsible to use these constants rather than raw zeros.

Where should these compile time constants go?  In the appropriate
modules?

dean