YesOrNo: useful idiom helper or wanking?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Apr 11 13:04:56 PDT 2011


On 4/11/11 2:35 PM, Nick Sabalausky wrote:
> /// Documentation here
> enum SomeOption { no, yes }
> ///ditto
>   void someFunction(...parms..., SomeOption, ...more_parms...) { ... }
>
> That groups the two together, right? So solved.

Never thought of it. Facepalm etc. Thanks!

Andrei


More information about the Digitalmars-d mailing list