[Issue 7364] Better Eponymous Template syntax
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 6 08:36:30 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7364
Tommi <tommitissari at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tommitissari at hotmail.com
--- Comment #7 from Tommi <tommitissari at hotmail.com> 2013-07-06 08:36:27 PDT ---
(In reply to comment #4)
> 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.
I think using 'out' as the symbol name would be even clearer. But I agree that
'template' is better than 'this'.
--
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