[clean-list] mod function
Ronny Wichers Schreur
ronny@cs.kun.nl
Thu, 11 Dec 2003 18:46:29 +0100
Alves writes (to the Clean mailing list):
> It looks like the instance of "mod" function is missing in the
> StdInt on Clean 2.0.2 (Win version):
Yes, that's deliberate. The mod function had the wrong semantics
for negative arguments. We didn't just want to change the semantics
and (perhaps silently) break things. That's why we removed it to
signal the change to Clean programmers. It will reappear with
proper semantics in a future version.
In most situations mod is only used with positive arguments, in which
case you can use the function rem instead.
Cheers,
Ronny Wichers Schreur