On Monday, 14 August 2017 at 16:49:22 UTC, Atila Neves wrote:
On Saturday, 12 August 2017 at 19:34:35 UTC, Arek wrote:
On Friday, 21 July 2017 at 08:53:44 UTC, Atila Neves wrote:


It's a template postblit constructor - it'd get instantiated differently depending on the type of the implicit `this` parameter and would be able to fix things up taking into account whether or not `this` was shared (or immutable).

Atila

Sorry - my mistake.

This fancy template compiles into

Disassembly of section .text.ref b.A b.A.__ctor!(b.A).__ctor(b.A):

0000000000000000 <ref b.A b.A.__ctor!(b.A).__ctor(b.A)>:
   0:   55                      push   %rbp
   1:   48 8b ec                mov    %rsp,%rbp
   4:   48 83 ec 30             sub    $0x30,%rsp
   8:   48 89 7d f8             mov    %rdi,-0x8(%rbp)
c: 48 8d 0d 00 00 00 00 lea 0x0(%rip),%rcx # 13 <ref b.A b.A.__ctor!(b.A).__ctor(b.A)+0x13>
  13:   b8 0a 00 00 00          mov    $0xa,%eax
... cut...

But it's still not the postblit and doesn't works like postblit.

Arek

Reply via email to