[Issue 7372] Error provides too little information to diagnose the problem (error: undefined identifier)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 27 09:35:17 PST 2012


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



--- Comment #4 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2012-01-27 09:35:15 PST ---
(In reply to comment #3)
> It's fundamental to mixing in templates that any scopes it needs to build must
> be present in the instantiation context, so yes, the burden is on the designer
> of that template to document it.
> 
> I'm going to mark this as enhancement because it is working as it was designed
> to.

Fair enough, but I think the error is really bad, I spent at least 2 hours to
figure out what was going on because of what I explain in comment 2. I  I think
it might deserve a little more than "enhancement", but this is a grey area. If
a compiler error says "can't compile" and nothing else, is that an bug or just
an enhancement? The message is not wrong, but is really bad, like in this case
(at a different level, of course).

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