[Issue 6106] Keep track of changes during replace function

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 7 03:00:58 PDT 2017


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #2 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to Andrei Alexandrescu from comment #1)
> This seems to have merit. Perhaps an optional last ref size_t parameter
> would fit the bill.

You can't have optional ref parameters. At the moment the language only
supports default parameters (which we consider optional), but having a ref
size_t parameter would imply something along the lines of foo(ref size_t a =
value), where value would be the address of the parameter. We can still
implement this by overloading the function

--


More information about the Digitalmars-d-bugs mailing list