Right now, what's the most important for the success and adoption of D?
Jascha Wetzel
firstname at mainia.de
Sat Sep 29 03:58:55 PDT 2007
Jarrett Billingsley wrote:
> But even if this is solved, there's a much more sinister problem with DLLs,
> for the same reason (no linking to host symbols): typeinfo. Basically, if
> you have a library that defines class A, and your host app uses class A and
> you make a DLL that uses class A, the class A in the host app is not the
> same class A as in the DLL. This breaks just about everything OOP.
if that were so, it would be a bug in the runtime. comparing typeinfos
shouldn't rely on their instances being singletons. and as far as i see
it in the code, they don't. they just use it as a shortcut if the
compared typeinfos happen to be the same instance.
therefore this shouldn't be a problem.
More information about the Digitalmars-d
mailing list