YesOrNo: useful idiom helper or wanking?
spir
denis.spir at gmail.com
Mon Apr 11 12:13:53 PDT 2011
On 04/11/2011 04:59 PM, Andrej Mitrovic wrote:
> It looks like an awkward workaround for that feature called named arguments.
True, but only for the case of yes/no; in this case only, the bool type
provides proper *constants* which *meaning* is obvious. Else, you need an enum
anyway, even with named args.
f = File(path="f.txt", mode=2);
Denis
--
_________________
vita es estrany
spir.wikidot.com
More information about the Digitalmars-d
mailing list