Thread overview
[Issue 21903] Class construction for C++ interop with -betterC
May 07, 2021
Adam D. Ruppe
May 07, 2021
SHOO
Nov 07, 2021
Tomáš Chaloupka
Nov 08, 2021
kinke
Dec 17, 2022
Iain Buclaw
Apr 10, 2023
RazvanN
May 07, 2021
https://issues.dlang.org/show_bug.cgi?id=21903

Adam D. Ruppe <destructionator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--- Comment #1 from Adam D. Ruppe <destructionator@gmail.com> ---
Try

scope B b = new B();

it should work.

--
May 07, 2021
https://issues.dlang.org/show_bug.cgi?id=21903

--- Comment #2 from SHOO <zan77137@nifty.com> ---
(In reply to Adam D. Ruppe from comment #1)
> Try
> 
> scope B b = new B();
> 
> it should work.

This method is not flexible enough for compound use of custom allocators, templates, and classes without default constructors.

--
November 07, 2021
https://issues.dlang.org/show_bug.cgi?id=21903

Tomáš Chaloupka <chalucha@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |betterC, C++
                 CC|                            |chalucha@gmail.com

--
November 08, 2021
https://issues.dlang.org/show_bug.cgi?id=21903

kinke <kinke@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke@gmx.net

--- Comment #3 from kinke <kinke@gmx.net> ---
This works with LDC v1.27+ due to `__traits(initSymbol, T)` [with an additional `-release` to circumvent a check for matching buffer length requiring druntime].

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21903

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
April 10, 2023
https://issues.dlang.org/show_bug.cgi?id=21903

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #4 from RazvanN <razvan.nitu1305@gmail.com> ---
Works with dmd also.

--