www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17465] New: stringof is allowed as identifier

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: nobody puremagic.com
          Reporter: b2.temp gmx.com

Maybe its usage as identifier should be deprecated ?

---
import std.stdio;

class Foo
{
    static class stringof { }
}

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

--
Jun 03 2017