Will D ever get optional named parameters?
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Mon Oct 13 09:20:11 PDT 2014
On Mon, 13 Oct 2014 16:08:07 +0000
ponce via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> Work-around I see a lot in C++:
>
> ---------------
>
> bool filled = true;
> drawCircle(filled);
>
> ---------------
>
> instead of:
>
> ---------------
>
> drawCircle(true);
>
> ---------------
it's not the same, i thing. for this we have Flag in std.typecons, for
example.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141013/e6b8552c/attachment.sig>
More information about the Digitalmars-d
mailing list