https://issues.dlang.org/show_bug.cgi?id=17465

          Issue ID: 17465
           Summary: stringof is allowed as identifier
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: b2.t...@gmx.com

Maybe its usage as identifier should be deprecated ?

---
import std.stdio;

class Foo
{
    static class stringof { }
}

void main()
{
    writeln(Foo.stringof);
}
---

--

Reply via email to