[Issue 8661] New: typeof not an attribute, doesn't work with UFCS
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Sep 14 05:57:19 PDT 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=8661
           Summary: typeof not an attribute, doesn't work with UFCS
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: monarchdodra at gmail.com
--- Comment #0 from monarchdodra at gmail.com 2012-09-14 05:57:31 PDT ---
In the title: Because "typeof" is a keyword,it does not have the same semantics
as the other properties (http://dlang.org/property.html), such as stringof,
sizeof etc..
For example:
--------
void main()
{
    int a;
    writeln(int.stringof);
    writeln(a.typeof.stringof); //This
    writeln(typeof(a).stringof);
}
--------
The syntax "a.typeof.stringof" should be made to work.
UFCS should not have a different behavior because typeof is a keyword.
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list