Smart references

via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 12 03:35:36 PDT 2015


On Wednesday, 11 March 2015 at 20:33:07 UTC, Andrei Alexandrescu 
wrote:
> #70: Attempting to copy a reference fails on account of the 
> disabled postblit. There should be a way to tell the compiler 
> to automatically invoke alias this and create a copy of that 
> guy.
>
> #81: Moving from a reference works by moving the Ref object. 
> There should be a way to tell the compiler that moving should 
> really move the payload around.

I suspect this will work automatically if #70 does.


More information about the Digitalmars-d mailing list