Final by default?

Walter Bright newshound2 at digitalmars.com
Wed Mar 12 16:50:14 PDT 2014


On 3/12/2014 4:14 PM, Ali Çehreli wrote:
> The same issue came up with 'version' recently. It is possible to start a
> version block like this:
>
>      version(something):
>
> However, it is not possible to get to the "else" part of that version block
> using the above syntax. Would the same syntax work for version as well?
>
>      version(something):
>          // ...
>
>      !version(something):
>          // ...

Yes, this has come up before, in various forms. The short answer is 
unequivocably "no". I've expounded on this extensively in this n.g., but don't 
have a reference handy.



More information about the Digitalmars-d mailing list