version and debug statements
Anders F Björklund
afb at algonet.se
Tue May 9 08:34:30 PDT 2006
maxter wrote:
> i've noticed code like this:
>
> version (foo)
> {}
> else
> {
> do something...
> }
Usually written as:
version (foo) {} else
{
....
}
> would it be more natural to be able to write:
>
> version (!foo)
> {
> do something...
> }
>
> the same applies to the debug statement. thanks
Yes it would, and Thomas patched this in bug #2522
http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/2522
But I don't think that they ever caught on with W.
http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/11946
http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/11995
--anders
More information about the Digitalmars-d
mailing list