On 06/23/2010 04:56 AM, Don wrote:
bearophile wrote:
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
I think the ; is part of the label statement. If not, it should be
removed entirely.
Fortunately there's no label statement. A label is a distinct entity and
may precede any statement.
Andrei