borrowed pointers vs ref

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue May 13 11:21:14 PDT 2014


On Tue, 13 May 2014 13:51:21 -0400, Walter Bright  
<newshound2 at digitalmars.com> wrote:

> On 5/13/2014 10:09 AM, Steven Schveighoffer wrote:
>> Yes, the difference here is that scope is a storage class, and only  
>> affects the
>> "head", whereas borrowed would have to be transitive.
>
> Are you sure it would have to be transitive?

I'm not certain I understand the concept correctly, but from Dicebot's  
code example, it is transitive.

I defer to the experts. Just trying to help explain the point he was  
making (and clearly doing a poor job).

-Steve


More information about the Digitalmars-d mailing list