Inconsistency increasing
DavidL
Davidl at 126.com
Sun Aug 26 08:06:49 PDT 2007
opAdd_r VS opAdd
opImpicitCastTo VS opImplicitCastFrom
consider:
objectA + objectB
objectB get opAdd_r
objectA get opAdd
what would happen?
structB = structA
structA get opImplicitCastTo and structB get opImplicitCastFrom, what
would happen?
both get called? or the one *well* defined by compiler( this kind of
specification could cause
many issues imo)
we don't need an OOP style operator overloading
we need a global operator overloading
--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list