[Issue 7652] Some float literals are now parsed as int.user-property

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 14 05:58:36 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7652


jens.k.mueller at gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jens.k.mueller at gmx.de


--- Comment #2 from jens.k.mueller at gmx.de 2012-05-14 05:59:59 PDT ---
Out of curiosity I tried (dmd 2.059) how hex floats are affected by the change
introduced in 2.058.

I.e. I would expect
auto = 0xa.p0f;
to call
@property
int p0f(int x);

but this does not happen. 0xa.p0f is detected as float literal which makes me
think: If 0xa.p0f is lexed as a float literal why was it decided that 1.f
should not be lexed as float literal? Or the other way round why is 0xa.p0f not
lexed as a property call on an int value.
The current behavior is a bit inconsistent.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list