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");