[Issue 14912] Move initialisation of GC'd struct and class data from the callee to the caller

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 14 10:43:17 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14912

--- Comment #9 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Steven Schveighoffer from comment #8)
> (In reply to Iain Buclaw from comment #7)
> > That's fine for anything except classes...
> 
> Sure, but with compiler visibility, and ability to inline (and ability to
> alter the implementation based on the type), we can do whatever makes the
> optimizer happy.
> 
> All we need from the compiler is the components that make up the ci.init.

Still need the ability to *deref a class to assign in bulk to its underlying
structure in the language.  Currently only the compiler/codegen is allowed to
do that.

--


More information about the Digitalmars-d-bugs mailing list