--- dean gaudet <[EMAIL PROTECTED]>
wrote:
> On Sun, 25 Feb 2001 [EMAIL PROTECTED] wrote:
>
> > What is the real argument behing the whole
> typecasting
> > thing, anyway? It works.
>
> typecasting hides typing problems. you can easily
> end up in situations
> where you are truncating or extending integers
> without realising it.
> it's much better to get the warning and fix the APIs
> (usually through
> explicitly defining types of the appropriate size
> rather than relying on
> assumptions of sizeof(int) == sizeof(long) or other
> such crud).
>
> printf()/scanf() are more painful to fix ... and
> this is where Ben Laurie
> can chime in and point out how C++ prototype
> overloading offers a much
> better solution, and i'd agree :)
>
> -dean
>
Yes. Type casting would cause segfault that due to the
misalignment in the object file.
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/