Is the module system in D fundamentally flawed?

BCS ao at pathlink.com
Sun Aug 17 14:36:44 PDT 2008


Reply to z,

> In Java I don't remember seeing "forward reference to XXX" compiler
> error just because I 'import' some package, but why in D there are so
> many such stupid message?
> 
> And a google search also find so many bugs associated with "forward
> reference"
> 

I think this is a bug. At some point the docs say that order doesn't matter, 
but based on this issue, it does. I've complained about this and even suggested 
ways to build a compiler that basically can't have forward reference errors 
but nothing has happened. IIRC the comment I got back was to the effect of 
"to hard" or "can't be done" (hint: it can be done, I'm currently working 
on a compiler [that is working] that needs to resolve forward reference before 
it can fully lex some things.)





More information about the Digitalmars-d mailing list