
17 Apr
2006
17 Apr
'06
8:02 p.m.
Hi Jorge, I found some corner cases while trying to implement Kevlin's idea. If you're interested, I can send you my letter to Kevlin.
1. If operator== is not used there should be no need for holded classes to implement it. 2. If operator== is used, and the holded class does not define it, the code must not compile. It's not possible. You may create "any" object in one TU and call operator== in other. A compiler doesn't know about other TUs. It just compiles current TU.
-- Alexander Nasonov Project Manager http://www.akmosoft.com