Our Sister

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Sat May 28 06:09:40 PDT 2016


On Saturday, 28 May 2016 at 04:15:45 UTC, Manu wrote:
> This is only true for the owner. If we had 'scope', or 
> something like
> it (ie, borrowing in rust lingo), then the fat slice wouldn't 
> need to
> be passed around

Right, I agree - if we keep the slice just the way it is now, it 
all still works if you borrow correctly!

(BTW, I don't think we even need this to be strictly @safe, 
though it would be nice if it was tested, we could say @system 
getSlice and potentially change it to @safe later.)


More information about the Digitalmars-d mailing list