Note that 'real' is a built in type in D. It's an 80-bit float on x86 procs and 64-bit elsewhere. So .5L is like cast(real).5. Not the solution you were looking for.
--bb 2010/3/27 so <s...@so.do>: > On Sat, 27 Mar 2010 15:28:22 +0200, bearophile <bearophileh...@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/ >