[Prev][Next][Index]
Re: parser bug for numeric constants
- From: "Beata Winnicka" <bfatyga@slab.cica.indiana.edu>
- Date: Wed, 7 Dec 94 11:43:37 -0500
- To: Lars Thomas Hansen <lth@cs.uoregon.edu>
- Subject: Re: parser bug for numeric constants
- Cc: sage-bugs@cica.cica.indiana.edu
The parser gets the type for floating-point numeric constants wrong.
The constant
10.0
is typed as T_FLOAT, whereas it should be T_DOUBLE (Ellis &
Stroustrup section 2.5.3, "The type of a floating constant is
_double_ unless explicitly specified by a suffix".
______________
Yes, indeed, the parser gets it wrong. What's worse it seems to drop
a suffix if there is one. I'll look into this. Thanks for pointing it
out. --Beata