bug: method override via overload
Nick
Nick_member at pathlink.com
Tue Feb 21 02:03:07 PST 2006
Oops, I missed the typedef at the begining of your example. I must have answered
on auto pilot there, sorry.
Still, I think the current behavior is correct. Even though Foo and int are
'nearly' the same type, they are not _actually_ the same type, so this is a
result of having strong typedefs in D. I guess int and Foo are treated much like
eg. float and double in this case, implicitly convertable but different types.
Nick
More information about the Digitalmars-d-bugs
mailing list