inout and function/delegate parameters

Stewart Gordon smjg_1998 at yahoo.com
Thu Mar 8 14:43:34 PST 2012


On 08/03/2012 19:38, Steven Schveighoffer wrote:
<snip>
> Yes, I couldn't really find that. It does specifically say casting away const and then
> modifying is invalid, but it does not say anything about "if you know the underlying data
> is mutable". But again, this is the point I was trying to make, we are casting away a
> const-like attribute and modifying the data.
<snip>

No more than we are already doing with the inout return.

Stewart.


More information about the Digitalmars-d mailing list