Errors in TDPL

Don nospam at nospam.com
Wed Jun 23 02:56:12 PDT 2010


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.


More information about the Digitalmars-d mailing list