DIP77 - Fix unsafe RC pass by 'ref'

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 10 14:43:10 PDT 2015


On Friday, 10 April 2015 at 21:20:32 UTC, Martin Nowak wrote:
> Assigning a RefCounted is marked @system, pass-by-ref is @safe.
> What's missing, you want to be able to use RefCounted in @safe 
> code? Why
> not pass it by value then?

This actually sounds quite logical to me - passing an RC object 
by ref doesn't sound very safe to begin with.


More information about the Digitalmars-d mailing list