[Issue 5286] To avoid a problem with Template syntax
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 2 01:02:52 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5286
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #6 from Don <clugdbug at yahoo.com.au> 2010-12-02 01:01:19 PST ---
This bug report is actually asking for the non-parentheses template
instantiation to be discarded entirely. It is a feature which relies 100% on
the precedence rules.
Remember that templates can have value parameters, so even something like:
int y;
auto x = to!Foo(y);
can be considered to be ambiguous.
Is it: to!(Foo)(y)
or
to!(Foo(y))
This applies to ALL function templates.
The idea that there are a few "ambiguous cases" which could generate errors, is
completely wrong.
--
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