On 9/23/13 11:59 AM, Jacob Carlborg wrote:
On 2013-09-23 17:03, Andrei Alexandrescu wrote:

I'd think new already is translated into a library call. Walter?

Yes, "new" is lowered to a couple different runtime functions. Here's a
list:

http://wiki.dlang.org/Runtime_Hooks

Thanks, this is great.

Currently "new" is fail because it calls functions passing TypeInfo objects, instead of calling type-parameterized functions. We must change that to have "new T(args)" lower into ".opNew!T(args)". Then object.d defines that function.


Andrei

Reply via email to