the cast mess

Kagamin spam at here.lot
Mon May 18 02:52:44 PDT 2009


Tim Matthews Wrote:

> When such invalid casts like "auto aa = cast(A[])fa;" are visible at  
> compile time why doesn't all the error throwing happen at compile time?

currently cast behaves mostly like C cast, special case being dynamic cast and opCast. So it's very unsafe.



More information about the Digitalmars-d mailing list