The empty statement ";" - when is it useful?

Don nospam at nospam.com
Sat Jul 25 11:19:19 PDT 2009


Andrei Alexandrescu wrote:
> D has ";" as the empty statement. In fact I think it's an empty 
> declaration because it can appear at top level.
> 
> When is it any good? The only place I can think of is after a label
> 
> blah: ;
> 
> But then you can always say
> 
> blah: {}

Except in an asm block. Can't think of anything else.

> 
> which is arguably less puzzling. Any other places?
> 
> 
> Andrei



More information about the Digitalmars-d mailing list