www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Object.factory fails for nested classes ?!

reply "extrawurst" <stephan extrawurst.org> writes:
Is it a bug or just missing specification that using 
Object.factory(fullyQualifiedNameToNestedClass) fails ?

See repro here:
http://dpaste.dzfl.pl/d789237b0f46

Regards,
Stephan
May 10 2015
parent "extrawurst" <stephan extrawurst.org> writes:
On Sunday, 10 May 2015 at 13:38:22 UTC, extrawurst wrote:
 Is it a bug or just missing specification that using 
 Object.factory(fullyQualifiedNameToNestedClass) fails ?

 See repro here:
 http://dpaste.dzfl.pl/d789237b0f46

 Regards,
 Stephan
Ok "real" nested classes (class with outer pointer) wont work (why does it fail inside a struct then?) That still leaves the question why a simple class declared in a unittest scope wont work either (even declared as a static class): http://dpaste.dzfl.pl/33ee48536ecb ideas anyone ?
May 10 2015