Version very simple?

David Nadlinger see at klickverbot.at
Sun Feb 27 07:20:46 PST 2011


On 2/27/11 4:14 PM, Steven Schveighoffer wrote:
> But here is essentially the way to do your thingy.
>
> version(IDENT)
> {
> }
> else version(IDENT2)
> {
> }
> else
> {
> version=NOT_IDENT_OR_IDENT2;
> }
>
> version(NOT_IDENT_OR_IDENT2)
> {
> ...
> }

Wouldn't that be »!(IDENT || IDENT2)«, as opposed to »!IDENT || !IDENT2«?

David


More information about the Digitalmars-d-learn mailing list