Foo getObj(ClassNames name) {
// without cast, it converts to the enum member name.
return cast(Foo)Object.factory(cast(string)name);
}
Oops, never mind - you don't need the "cast(string)" there.
Foo getObj(ClassNames name) {
// without cast, it converts to the enum member name.
return cast(Foo)Object.factory(cast(string)name);
}
Oops, never mind - you don't need the "cast(string)" there.