casting int[] to bool[]
Saaa
empty at needmail.com
Wed Jan 28 19:13:37 PST 2009
Ok.
I thought that in this particular case it would be equally safe.
Casting is so easy to read.. I'll try and minimize my usage ; )
>
> It's just that casting is a very blunt tool and should be avoided
> whenever possible, because the compiler won't tell you if you're doing
> something completely crazy.
>
> Here you could use somethign like:
>
> dataIn[i][index] = (t!=0);
>
> instead of casting.
>
> --bb
More information about the Digitalmars-d-learn
mailing list