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: nob...@puremagic.com ReportedBy: monarchdo...@gmail.com --- Comment #0 from monarchdo...@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: -------