[Issue 3950] Wrong error message in recursive template call with no !

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 15 07:44:22 PDT 2010


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



--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> 2010-03-15 07:44:20 PDT ---
The error is a recursive expansion.  I think it's fairly obvious.  The compiler
cannot expand the template because the template depends on the result of
itself.

Many error messages do not reflect an actual logic error.  The compiler is not
a psychiatrist, it cannot determine what the user was trying to do from nuances
in the code.  Instead of suggesting a fix, it simply tells you why what you
requested cannot be done.  Maybe the user meant to do a recursive expansion but
didn't realize that was an error.

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