September 05, 2013 [dox]Hijacking Floating Point Literals | ||||
---|---|---|---|---|
| ||||
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 |
September 05, 2013 Re: [dox]Hijacking Floating Point Literals | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manfred Nowak | 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.
|
Copyright © 1999-2021 by the D Language Foundation