What's missing from Phobos for Orbit (package manager)

Steven Schveighoffer schveiguy at yahoo.com
Wed Feb 13 11:39:26 PST 2013


On Wed, 13 Feb 2013 03:34:36 -0500, Marco Leise <Marco.Leise at gmx.de> wrote:

> Am Tue, 12 Feb 2013 13:38:53 +0100
> schrieb Jacob Carlborg <doob at me.com>:
>

>> * 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


More information about the Digitalmars-d mailing list