http://wiki.dlang.org/DIP25

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 29 11:50:11 PST 2014


On 12/29/2014 5:53 AM, Steven Schveighoffer wrote:
> On 12/28/14 4:33 PM, Walter Bright wrote:
>> inout is not transitive, so a ref on the container doesn't apply to a
>> ref on the contents if there's another level of indirection in there.
> I'm not sure what you mean by this, but inout as a type modifier is definitely
> transitive.

As a type modifier, yes, it is transitive. As transferring lifetime to the 
return value, it is not.



More information about the Digitalmars-d mailing list