minwin

Anders F Björklund afb at algonet.se
Tue Nov 28 02:27:36 PST 2006


Bill Baxter wrote:

>     version(NOMAIN) {}
>     else {
>        [existing winmain code here...]
>     }
> 
> (is there a way to do version(!NOMAIN)?)

A patch to do so has been rejected several times,
it's apparently "against the spirit" of version...
(it is supposed to be "positive" and not negative,
see Walter's earlier newsgroup posts* on the topic)

So your code above is the canonical D way to do it.

--anders

* e.g. digitalmars.D/37778, digitalmars.D/11995



More information about the Digitalmars-d-announce mailing list