Angry citizen stikes once again. forward references problems

Dawid Ciężarkiewicz dawid.ciezarkiewicz at gmail.com
Sun Jul 30 12:52:17 PDT 2006


Nested classes, enums and such are unusable if there are any circular
imports. If you have got no luck you get:

   `class X is forward referenced when looking for Y'

error and the only way to have it compile is too change compilation order.
(there was many such posts on D.learn and D.bugs). If you're using dbuild
for that - you can only pray not to hit that problem or not to use nested
things at all.

In extremal situations you can even get something you can't compile in any
way:
http://d.puremagic.com/issues/show_bug.cgi?id=104

This is one of those things that makes me irritated each time I'm dealing
with D, because I use nested logic in classes much. And this is one of
errors that are blockers for DMD 1.0. You can't write serious projects
using D till such errors exists.

I hope that after fixing import conflict problems in 163 (good work BTW) now
has come time to fix other import problems - especially this one. 

Thanks you for your attention.



More information about the Digitalmars-d mailing list