generic + numeric + literals = abomination

so so at so.do
Sat Mar 27 06:37:08 PDT 2010


On Sat, 27 Mar 2010 15:28:22 +0200, bearophile <bearophileHUGS at lycos.com>  
wrote:

> so:
>> One thing i can think of now is adding another float literal, maybe 'r',
>> for "real"!,
>
> See here, Unfortunately it's called "L" not "r":
> http://www.digitalmars.com/d/2.0/lex.html
>
> FloatSuffix:
> 	f
> 	F
>
> RealSuffix:
> 	L
>
> bearophile

Yes, it says :
"Floating literals with no suffix are of type double. Floats can be  
followed by one f, F, or L suffix. The f or F suffix means it is a float,  
and L means it is a real."

Problem remains, i think you either lost me or just didn't read what i  
wrote,
or well.. most probably i am still not clear enough.

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the Digitalmars-d-learn mailing list