From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,287e8ed2b0c0aabf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-31 11:58:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!demon!peernews!peer.cwci.net!newspeer1-gui.server.ntli.net!ntli.net!cox.net!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc01.gnilink.net.POSTED!53ab2750!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: <3D3DED1F.24DE3AC8@lmco.com> <3D46CA0E.BCD17D9C@none.provided> <3D470EEE.811F758D@lmco.com> <719a5d07.0207310251.8f1adef@posting.google.com> Subject: Re: Zeller's Algorithm X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: Date: Wed, 31 Jul 2002 14:33:52 GMT NNTP-Posting-Host: 141.157.176.41 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc01.gnilink.net 1028126032 141.157.176.41 (Wed, 31 Jul 2002 10:33:52 EDT) NNTP-Posting-Date: Wed, 31 Jul 2002 10:33:52 EDT Xref: archiver1.google.com comp.lang.ada:27527 Date: 2002-07-31T14:33:52+00:00 List-Id: > This may be a problem in languages > such as C, where e.g. -30 % 7 = -2. Actually, the C standard does not require that (-30) % 7 == (-2). The standard has somewhat loose requirements here that would allow the C "%" operator to behave either like the Ada "rem" operator, or like the Ada "mod" operator. The drive to standardize C, unfortunately, came after there were many divergent implementations of the language. The need to validate existing implementations tied the hands of the standards committee.