move object from heap to stack

monarch_dodra monarchdodra at gmail.com
Thu Sep 20 07:16:23 PDT 2012


On Thursday, 20 September 2012 at 14:09:29 UTC, Namespace wrote:

> http://dpaste.dzfl.pl/edit/361a54eb
> With
> [code]
> @disable this(this);
> [/code]
> this don't work (as expected). But with the copy ctor but 
> without ".get" you earn a segmentation fault (as you can see). 
> So you can disable the copy ctor but without using .get you're 
> not get what you want. Even with scoped, but scoped's getter 
> name is too long.

Wrong link.


More information about the Digitalmars-d-learn mailing list