www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [dox]Hijacking Floating Point Literals

reply Manfred Nowak <svv1999 hotmail.com> writes:
According to lex.html `42.f' is a floating point literal.

Sorrily this changes if function `f' with siganture `auto f( int)' is 
declared and scopes intersect.

-manfred
Sep 05 2013
parent "ponce" <contact spam.spamlord.org> writes:
On Thursday, 5 September 2013 at 08:38:22 UTC, Manfred Nowak 
wrote:
 According to lex.html `42.f' is a floating point literal.

 Sorrily this changes if function `f' with siganture `auto f( 
 int)' is
 declared and scopes intersect.

 -manfred
42.f is no longer a valid floating-point literal, this is the new choosen behaviour since UFCS. So lex.html is probably out-of-date.
Sep 05 2013