ð thus on Tue, 12 Dec 1995 19:53:28 +0000, Alastair virtually scripted...
> thus spake d hall
Michael> ch->player.height = ch->player.height * 3 / 4;
>> this might save the work of typecasting, but it varies based upon the
>> platform and compiler.
Alastair> why should this vary from platfom and compiler? The precedence
Alastair> of operators is defined in the ansi standard.
^^^^
ansi standard is written in stone, much less in each compiler. sun
compilers are notorious for not conforming.
cause if you ever had to deal with OSF/1 from digital, you'd realize just
how ornery it's compiler can be about typecasting. these "warnings" can
turn a simple oversight into a fatal error.
i've had a (const char *) implicitedly cast into an (unsigned char *)
become fatal upon compilation with a digital unix compiler.
it does matter.
d.
--
``i don't understand the appeal of keeping those things as pets,
unless you want your children eaten.''
- general jarkeld, the arctic fox
This archive was generated by hypermail 2b30 : 12/07/00 PST