D should disallow forward references

Jarrett Billingsley jarrett.billingsley at gmail.com
Tue Aug 25 08:09:37 PDT 2009


On Tue, Aug 25, 2009 at 10:54 AM, grauzone<none at example.net> wrote:
> Jarrett Billingsley wrote:
>>
>> For two, NO.  Disallowing forward references sucks.  It's entirely
>> possible to implement a compiler that resolves forward refs correctly.
>>  If W doesn't want to do it, that's on him.
>
> I agree; but: I'm just saying that disallowing it would actually be better
> for the programmer, than leaving it half-broken.

Then let's drop every buggy feature.  :P

The best solution would be to *fix it*, or *make a new compiler that
works right.*



More information about the Digitalmars-d mailing list