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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fc647120984c9ad2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news.glorb.com!newscon06.news.prodigy.net!prodigy.net!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Way to use Ada Mod function on floats? References: <1164987168.477589.240140@j44g2000cwa.googlegroups.com> <4571ac78_6@news.bluewin.ch> From: Stephen Leake Date: Mon, 04 Dec 2006 06:31:00 -0500 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:f8UvWJ+rPXFbYBvI+E19N7oY580= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: f25b5457406fc759e00d427336 Xref: g2news2.google.com comp.lang.ada:7798 Date: 2006-12-04T06:31:00-05:00 List-Id: "Jeffrey R. Carter" writes: > Stephen Leake wrote: >> Perhaps 'Truncation would match "rem"? I haven't looked at it in >> detail. > > OK. Some of the suggestions have actually been for "rem" equivalents, > which may be why I was thinking along those lines. Ada is about the > only language that provides both, and many use a name like "mod" for > remainder functions. > > So, why don't you call your function "mod"? It is renamed to that in the spec. In the original implementation, the body was separate, to allow for different implementations (in assembler) on different processors. Separate bodies cannot have operator names. That turned out to be unnecessary, but I kept the names. I prefer non-operator names in bodies; it makes searching for things easier. -- -- Stephe