On Wed, 13 Feb 2013 03:34:36 -0500, Marco Leise <[email protected]> wrote:

Am Tue, 12 Feb 2013 13:38:53 +0100
schrieb Jacob Carlborg <[email protected]>:


* newInstance - Returns a new instance based on the class name or
ClassInfo. Can handle any class regardless of constructors

So I figure, Object.factory("ClassName") is too limited. I
used to just force my code work with that one.


Hm... I think all we need is a public interface to _d_newclass in druntime:

extern (C) Object _d_newclass(const ClassInfo ci)

In fact, it is pretty much public, since it's extern(C).

-Steve

Reply via email to