CompuServe Thread

No more typecasts?

2 messages in this thread
#113606From: Tom EshelmanJul 18, 1990 7:47 PM
Mike: On 2-6 under Getting Started, it is alleged that to employ 16 bit ints all I need do is to #include <functions.h>. No longer do I have to worry about whether Amiga functions have their integral arguments typecast to longword size. No more Move (rp, (long) position, 12L);, etc. Can this be taken literally? Regards Tom
#113850From: Mike Spille/ManxJul 20, 1990 12:40 AM
Yes, it can be taken literally. The declarations in functions.h are now fully prototyped (a la ANSI), which means that the compiler will 'quietly cast' integral values which don't quite match, like when a short is passed but a long is expected. This is probably the niftiest thing the ANSI committee added to the language…. -Mike