Direct access to struct construction, copying and destruction

Jonathan M Davis jmdavisProg at gmx.com
Mon Jul 9 15:53:50 PDT 2012


On Monday, July 09, 2012 22:41:57 Benjamin Thaut wrote:
> Clear uses the TypeInfo. The proposed functions should not be library
> functions but directly aviable from the compiler. Something like
> __postblit and __dtor but properly implemented.

Well, since all of the necessary information is in the TypeInfo, not in the 
type itself, I don't see how you're going to do that. As I understand it, it's 
not the compiler that deals with all of that. It's druntime. So, without a 
major redesign, there's no way that the compiler is going to generate that 
stuff for you. That's druntime's job.

- Jonathan M Davis


More information about the Digitalmars-d mailing list