[Issue 3867] Regression(1.051) forward referenced enum member via an alias, templates, and is(), D1 only

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 7 10:17:45 PDT 2010


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



--- Comment #11 from Don <clugdbug at yahoo.com.au> 2010-08-07 10:17:42 PDT ---
(In reply to comment #10)
> May I ask why there are so many forward ref bugs in general and why fixing
> these bugs often causes other regressions? Just look at regressions like bug
> 4210...
> 
> Is the dmd code quality that bad or what?

No. To fix a forward reference bug, you need to change the order in which the
compiler performs its semantic pass. And this is difficult, largely because
it's quite difficult for the compiler to 'undo' analysis which it's already
done. So it's very easy to get wrong.

This is why most languages which are similar to D (eg, C++) don't allow
arbitrary forward references.

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