Safe reference counting cannot be implemented as a library
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Tue Oct 27 15:19:04 PDT 2015
On Tuesday, 27 October 2015 at 21:50:15 UTC, Andrei Alexandrescu
wrote:
> On 10/27/2015 05:26 PM, rsw0x wrote:
>> It has been a great success for Rust, I rarely ever see RC
>> used anywhere
>> in Rust code thanks to borrowing. The new C++ core guidelines
>> are also
>> heavily based on this cf. *_view types in GSL.
>
> You can safely ignore the C++ part, the views are unsafe. I'd
> appreciate if you backed up your claim on Rust. -- Andrei
That is ultimately irrelevant. Be it unique_ptr or shared_ptr,
the same problem arise: this must not escape.
More information about the Digitalmars-d
mailing list