char[] name | the name of the symbol to find a module match for. |
char[] name | the name of the symbol to search for. |
classname | the D namespace and name of the class to search for. |
auto newFoo = getCtor("FooModule.Foo", char [], real); auto newFooI = getCtor("FooModule.Foo", int); x = newFooI(58); y = newFoo("Avogadro's Number", 6.022e23);is equivalent to:
x = new FooModule.Foo(58); y = new FooModule.Foo("Avogadro's Number", 6.022e23);