On Thu, 23 Oct 2014 14:36:17 +0300
ketmar via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
wrote:

> On Thu, 23 Oct 2014 16:55:52 +0530
> Shriramana Sharma via Digitalmars-d-learn
> <digitalmars-d-learn@puremagic.com> wrote:
> 
> > I'd really like to know what's exactly happening in that line:
> > 
> > auto P = Pair(1, 2).handle ;
> object moving. add postblit (`this (this)`) and you'll see that.
or, to be precise, object *copying*. it's not the same as creating new
object. if you'll add destructor, you'll see that destructor is called
twice: once for local copy and once for P.

Attachment: signature.asc
Description: PGP signature

Reply via email to