comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Way to use Ada Mod function on floats?
Date: Mon, 04 Dec 2006 06:31:00 -0500
Date: 2006-12-04T06:31:00-05:00	[thread overview]
Message-ID: <ulkln28zv.fsf@stephe-leake.org> (raw)
In-Reply-To: UaIch.168628$aJ.31342@attbi_s21

"Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org> 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



      reply	other threads:[~2006-12-04 11:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-01 15:32 Way to use Ada Mod function on floats? AAFellow
2006-12-01 16:37 ` Jeffrey Creem
2006-12-01 17:21 ` Adam Beneschan
2006-12-01 21:13 ` Chris Moore
2006-12-02 11:11 ` Stephen Leake
2006-12-02 16:40   ` Gautier
2006-12-02 17:48     ` Simon Wright
2006-12-02 18:21       ` Dmitry A. Kazakov
2006-12-02 18:24         ` Dmitry A. Kazakov
2006-12-03  0:50       ` Jeffrey R. Carter
2006-12-03  1:05     ` Randy Brukardt
2006-12-03 15:14     ` Stephen Leake
2006-12-03 22:27       ` Jeffrey R. Carter
2006-12-04 11:31         ` Stephen Leake [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox