Errors in TDPL
bearophile
bearophileHUGS at lycos.com
Tue Jun 22 16:34:30 PDT 2010
Andrei:
> > void main() {
> > goto FOO;
> > FOO:;
> > }
>
> Yes. It shouldn't compile. Walter and I agreed that solitary semicolons
> are useless (you can always use {} as an empty statement and that
> actually makes things clearer to everyone),
I have had to use a LABEL:; in D code, to implement a finite state machine.
So I guess I'll have to write it like this:
LABEL: {}
Bye,
bearophile
More information about the Digitalmars-d
mailing list