Squeak archeology - quo vs. //

Ian Piumarta ian.piumarta at inria.fr
Tue Apr 6 20:29:01 UTC 2004


On 06 Apr 2004, at 22:17, Lex Spoon wrote:

> I'm pretty sure that in ANSI C the behavior is implementation defined.

It was undefined in C89.

> So don't count on it doing one way or the other.

C99 requires the division and modulus operators to truncate towards 
zero (consistent with Fortran).  Since C99 is already here, you 
_should_ count on it.

Ian




More information about the Squeak-dev mailing list