auto ref is on the docket
Daniel N via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jun 22 14:30:45 PDT 2015
On Monday, 22 June 2015 at 20:56:12 UTC, Jonathan M Davis wrote:
> won't mutate the argument, but if you allow it with ref in
> general, then you stand no chance of being able to look at a
> function signature and deduce whether the function intends to
> mutate an argument or not.
>
> - Jonathan M Davis
It's no worse than auto ref. It's only by convention that auto
ref functions doesn't mutate, at least I follow that convention,
but when looking at someone else's function, all bets are off.
More information about the Digitalmars-d
mailing list