Debug arguments?

Gary Willoughby via Digitalmars-d digitalmars-d at puremagic.com
Tue May 13 10:03:20 PDT 2014


On Tuesday, 13 May 2014 at 09:38:51 UTC, bearophile wrote:
> 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 think i have to agree with Daniel. Without trying to sound 
condescending, if you need to pass certain arguments only in 
debug builds something has gone terribly wrong with the design of 
your program. IMHO good OOP design would remove the need.


More information about the Digitalmars-d mailing list