[Issue 7364] Better Eponymous Template syntax

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 18 07:56:27 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=7364



--- Comment #4 from Nick Treleaven <ntrel-public at yahoo.co.uk> 2013-02-18 07:56:20 PST ---
Any solution should be able to replace the existing syntax completely, so the
compiler would have to parse e.g. function template blocks:

template initOf(T)
{
    T this()
    {return T.init;}
}

I think instead of using 'this' for the symbol name, 'template' would be
clearer.

-- 
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