Object.factory failed with nested class
Timon Gehr
timon.gehr at gmx.ch
Sun Feb 12 15:33:25 PST 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.
More information about the Digitalmars-d-learn
mailing list