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

Don nospam at nospam.com
Tue Jul 28 11:50:12 PDT 2009


Stewart Gordon wrote:
> Don wrote:
>> Andrei Alexandrescu wrote:
> <snip>
>>> blah: {}
>>
>> Except in an asm block. Can't think of anything else.
> <snip>
> 
> But an asm block doesn't contain D statements, so that's another matter.
> 
> Stewart.
Yes, you're right, it's asm syntax -- though it's an asm syntax which 
only exists in D, is copied from the D syntax, and which is actually odd 
and a bit annoying.
(It's particularly annoying in the case where the next line is a version 
statement).



More information about the Digitalmars-d mailing list