digitalmars.D.learn - Object.factory failed with nested class
- Eyyub (5/5) Feb 12 2012 Hi all,
- Timon Gehr (4/8) Feb 12 2012 In theory it could work for only static local classes, but that does not...
- Eyyub (4/7) Feb 12 2012 Mmh, ok I understood !
Hi all, I'd like to know, why Object.factory(classname) failed with nested class ? Source code : http://paste.pocoo.org/show/N6BJPMbGn2vVtJo649BJ/ . Thanks in advance,
Feb 12 2012
On 02/13/2012 12:15 AM, Eyyub wrote:Hi all, I'd like to know, why Object.factory(classname) failed with nested class ? Source code : http://paste.pocoo.org/show/N6BJPMbGn2vVtJo649BJ/ . Thanks in advance,In theory it could work for only static local classes, but that does not work too. It is an arbitrary restriction. Classes instantiated by Object.factory must reside at module scope.
Feb 12 2012
On Sunday, 12 February 2012 at 23:33:26 UTC, Timon Gehr wrote:In theory it could work for only static local classes, but that does not work too. It is an arbitrary restriction. Classes instantiated by Object.factory must reside at module scope.Mmh, ok I understood ! Thanks a lot for your help ! Bye.
Feb 12 2012