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

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from RazvanN <[email protected]> ---
(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

--

Reply via email to