Quiz of the day: Why does this not work?

Jarrett Billingsley jarrett.billingsley at gmail.com
Thu Nov 6 15:28:11 PST 2008


On Thu, Nov 6, 2008 at 5:34 PM, Sean Kelly <sean at invisibleduck.org> wrote:
>> of the type - every member, every method, all the bases - were the
>> same in order for the types to be "equal".  This is obviously a
>> nontrivial operation and not something you want to have happen every
>> time you do a cast.
>
> I'd expect a name comparison to be sufficient so long as the name is the
> fully qualified name of the class.  At least within a single binary. There's
> obviously the rare chance that different class implementations could have
> the same name between an app and a DLL.  So my suggestion wouldn't have
> worked in every case anyway.

Using identity/name within a single binary is fine.  I was mostly
considering the case of the host app and the plugin being compiled
against different/modified versions of the source.



More information about the Digitalmars-d mailing list