D should disallow forward references

Stewart Gordon smjg_1998 at yahoo.com
Tue Aug 25 10:52:37 PDT 2009


grauzone wrote:
<snip>
> It's not like this is really going to be fixed.

Your point?

> And other compilers don't throw up either, when you present them code 
> with complex structure. Just in dmd, it seems to dependent from the 
> internal structure of the compiler, *if* or *how* something works. The 
> worst thing is, Walter doesn't seem to care...

Walter is just one person working on just one implementation of D.  Why 
should the whole language revolve around this one implementation?

> Actually, it's much simpler to solve forward reference and cyclic 
> dependency issues in C than in D. Ah, the power of simplicity.

Have you written a compiler for a superset of C in which arbitrary 
forward references are allowed?  How did you do with overcoming the 
difficulty that is C's context-sensitive grammar?

Stewart.



More information about the Digitalmars-d mailing list