[Issue 17465] New: stringof is allowed as identifier
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Jun  3 01:31:28 PDT 2017
    
    
  
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 at puremagic.com
          Reporter: b2.temp at gmx.com
Maybe its usage as identifier should be deprecated ?
---
import std.stdio;
class Foo
{
    static class stringof { }
}
void main()
{
    writeln(Foo.stringof);
}
---
--
    
    
More information about the Digitalmars-d-bugs
mailing list