Pointers or copies?

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Wed Dec 20 15:16:24 PST 2006


Frits van Bommel wrote:
> The compare will call opEquals, which will compare addresses by default. 
> (Assuming the contents are class instances, not structs. Structs compare 
> their contents by default)

And what Tom said: if you want to enforce identity-comparison (or avoid 
the virtual function-call) use 'is' instead of '=='.



More information about the Digitalmars-d mailing list