On Thursday, March 6, 2003, at 09:22 AM, Mat�as Giovannini wrote:



On Thursday, March 6, 2003, at 10:49 AM, pero wrote:

And what about things like number-support? Your last statement was, that
we should implement it even if we know that it breaks backwards compatibility.
During the discussion I suggested to make the number-support pluggable to
ensure the complete backwards compatibility but you did not like the idea
of having a core functionality pluggable. So do I btw. With full number support
things like:


#if (5 / 2 == 2)


If the parser detects /-?[0-9]+/ as Integer, and /-?[0-9]*\.[0-9]*([Ee][-+]?[0-9]+)?/ as Double, it need not break compatibility. Then:


5 / 2 == 2  (Integer / Integer == Integer)
5 / 2. == 1.5 (Integer / Double == Double)
5. / 2 == 1.5 (Double / Integer == Double)
5. / 2. == 1.5 (Double / Double == Double)

C does this, Java does this... It's not that complicated, really.

:)


That's not a bad idea.

geir

--
Geir Magnusson Jr                                   203-956-2604(w)
Adeptra, Inc.                                       203-434-2093(m)
[EMAIL PROTECTED]                                   203-247-1713(m)


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to