Debug arguments?
Daniel Murphy via Digitalmars-d
digitalmars-d at puremagic.com
Tue May 13 06:18:29 PDT 2014
"bearophile" wrote in message news:dmpcwdctnuenxdlpfysl at forum.dlang.org...
> Sometimes you want to give arguments to a function that are only used for
> debug builds. So is it a good idea to introduce debug arguments (only
> allowed as trailing arguments, like the arguments with a default value)?
I don't think this is a good idea. I've never liked code that did this
using macros, and it wasn't just because it was using macros.
More information about the Digitalmars-d
mailing list