[D1] type of type

Denis Koroskin 2korden at gmail.com
Thu Dec 23 14:41:43 PST 2010


On Fri, 24 Dec 2010 01:28:49 +0300, %u <e at ee.com> wrote:

> Should have been this:
>
> void func(type t){
>   new t();
> }
>
>

Try this (not tested):

class Test {}
Object o = Object.factory("Test");


More information about the Digitalmars-d-learn mailing list