[Issue 12573] Implicit immutable cast for ref/out argument of pure functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 15 11:48:21 PDT 2014


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

--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to yebblies from comment #2)
> Yeah, doesn't make much sense for 'ref'.  But what about 'out'?

out parameters are addressable just like ref ones. Only difference is they are
initialized upon entry. In other words, they have the same issue. Only return
values aren't directly addressable. If out variables were write-only, then it
might make sense.

--


More information about the Digitalmars-d-bugs mailing list