Safer casts

Janice Caron caron800 at googlemail.com
Fri May 9 08:08:43 PDT 2008


On 09/05/2008, janderson <askme at me.com> wrote:
>  I think that up casting for classes should be implicit for up cast, like it
> works in C++.  Its perfectly ok to upcast and there shouldn't be any warning
> casts around that.  That is actually a very useful feature for genetic style
> coding.  Of course the cast should still work for upcasting, but its
> superfluous.

Yes, you are completely correct, of course.



More information about the Digitalmars-d mailing list