Class references, or using ClassInfo to instantiate classes?
Thomas Kuehne
thomas-dloop at kuehne.cn
Fri Feb 2 06:23:34 PST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vladimir Panteleev schrieb am 2007-02-02:
> On Thu, 01 Feb 2007 17:21:14 +0200, Jarrett Billingsley <kb3ctd2 at yahoo.com> wrote:
>
>> This is possible with reflection. Check out FlectioneD; it has (at least a
>> limited form) of instantiating classes by a string name. In fact, classes
>> are represented by (gasp) the Class type.
>
> From what I understood, FlectioneD isn't really portable, and thus doesn't really
> compare to a language feature. Also, it requires debug symbols to be compiled in
> the executable, while this can be implemented as a fairly simple language construct...
The problem is that oplink (the linker DMD uses on Windows) doesn't
include the symtab information in the final binary. This isn't a
limitation of the binary format but of the tools used.
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFw1Y3LK5blCcjpWoRAvcsAJ9IlXdbAzWyciu3pCZSKQR1SdbkVQCeORE/
QVQ3qV+OsWtOmt/hHX2vY6A=
=aH6m
-----END PGP SIGNATURE-----
More information about the Digitalmars-d
mailing list