-> and :: operators
Andrej Mitrovic via Digitalmars-d
digitalmars-d at puremagic.com
Sun Oct 11 09:57:38 PDT 2015
On Friday, 9 October 2015 at 03:41:42 UTC, Walter Bright wrote:
> These, of course, are C++ operators that are replace with the .
> operator in D. But when I translate C++ code to D, sometimes
> these operators get left behind, and sometimes I simply
> reflexively type them into D code.
>
> The error message coming out of dmd could be better. I suggest
> recognizing -> and :: in the lexer, and saying something like:
>
> "The '->' operator is not in D, did you mean '.'?"
>
> Anyone want to do a PR for this? (Should be pretty
> straightforward.)
https://issues.dlang.org/show_bug.cgi?id=15186
https://github.com/D-Programming-Language/dmd/pull/5190
More information about the Digitalmars-d
mailing list