An exegesis of Walter's reference counted slice

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Tue Feb 24 12:01:32 PST 2015


On Tue, 24 Feb 2015 11:40:34 -0800, Andrei Alexandrescu wrote:

> 3. opIndex ("here's the magic") is the most interesting part of the
> proposal. It disallows unsafe use such as:
> 
> @safe ref int fun()
> {
>     auto a = RCArray!int([1, 2, 3]);
>     return a[1];
> }

this is the important part for those who are too lazy to read DIP25 (like 
me). thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150224/d7b647c6/attachment.sig>


More information about the Digitalmars-d mailing list