News for hackers. Stuff that matters.
Re:A half-hour to learn Rust by dbaupp on Sunday January 03, 2021 @04:44AM (#25620755)
> But 'answer' is of course not owned by the current function

As you imply later, ‘answer’ itself is owned by the current function, but the ‘answer’ value is a pointer that doesn’t own what it points to. This subtlety, that references are full values themselves, is definitely something to trip on, especially when double indirection starts popping up like this.

There are no comments on this comment yet.