[Issue 18172] std.getopt should allow taking parameters by `ref` (like std.format.formattedRead), s.t. it can be used in @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 14 18:10:30 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18172

Jack Stouffer <jack at jackstouffer.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe
                 CC|                            |jack at jackstouffer.com

--- Comment #1 from Jack Stouffer <jack at jackstouffer.com> ---
Working on this, I've come to the realization that you have to give up most of
the static argument checking that currently exists in getopt for this to work.

Once you allow non-pointers to be used with the auto ref variadic parameters,
it's practically impossible to tell the difference between an invalid signature
and a valid one.

--


More information about the Digitalmars-d-bugs mailing list