Debug arguments?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue May 13 13:32:49 PDT 2014


On 5/13/2014 2:38 AM, 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)?

Optional arguments interact badly with overloading. They make overloads very 
hard to reason about, and overloading is complex enough already.



More information about the Digitalmars-d mailing list