putting more smarts into a == b

Frank Benoit keinfarbton at googlemail.com
Sun Sep 27 07:47:02 PDT 2009


Andrei Alexandrescu schrieb:
> Frank Benoit wrote:
>> In DWT, I cast always first to Object.
>> Java> if( intf1.equals(intf2) ){
>> D1.0> if( ((cast(Object)intf1).opEquals( cast(Object)intf2 )){
> 
> I think in D the cast is inserted automatically. Walter?
> 
> Andrei

there is a related bug report
http://d.puremagic.com/issues/show_bug.cgi?id=2794



More information about the Digitalmars-d mailing list