DMD 0.150 release
Walter Bright
newshound at digitalmars.com
Tue Mar 21 18:24:55 PST 2006
"xs0" <xs0 at xs0.com> wrote in message news:dvq249$1ljb$1 at digitaldaemon.com...
> Hmm, so casting between FooInterface[] and FooClass[] still doesn't work,
> right?
That's right.
> Are you sure that's better than spending a few cycles per method call?
> Furthermore, some common operations would actually be faster:
>
> - returning interfaces from functions :)
> - calling methods defined in Object
> - testing for equality
>
> BTW, the spec should say something on that matter, I think you should
> either make the array casting work or declare it illegal, as an invalid
> reference is utterly useless. At least one will get a nice error message
> instead of a big "WTF?!?" expression on his face, when he tries to call a
> method :)
>
>
> xs0
More information about the Digitalmars-d-announce
mailing list