[Issue 3950] Wrong error message in recursive template call with no !
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 15 06:40:54 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3950
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |schveiguy at yahoo.com
Resolution| |INVALID
--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> 2010-03-15 06:40:52 PDT ---
Inside a template, the symbol without the bang is equivalent to the template
instantiation being created. In other words, it's not an error simply to use a
template inside itself without the bang.
example:
struct Foo(T)
{
bool opEquals(ref const Foo f) const
{
assert(is(typeof(f) == const(Foo!T));
return true;
}
}
--
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