comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <wgroleau@usa.com>
Subject: Re: Characters and Numerics
Date: Wed, 05 Dec 2001 16:27:31 -0500
Date: 2001-12-05T16:27:31-05:00	[thread overview]
Message-ID: <3C0E9143.672924B5@usa.com> (raw)
In-Reply-To: u0ssrlq8nu1k36@corp.supernews.com



Matthew Heaney wrote:
> But he stated as a precondition that C is a digit character.  The algorithm
> I provided is only guaranteed to satisfy its postcondition if the
> precondition is satisfied.

Oh, I didn't notice that precondition.  Anyway,
I think one 'value is cleaner than two 'pos and
a subtraction.  Especially if (wild guess) he's
trying to handle multiple digits and doesn't
know he can do one 'value on the whole string.  :-)

-- 
Wes Groleau
http://freepages.rootsweb.com/~wgroleau



  reply	other threads:[~2001-12-05 21:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-05 12:03 Characters and Numerics Duke Luke
2001-12-05 12:07 ` Lutz Donnerhacke
2001-12-05 12:16 ` M. A. Alves
2001-12-05 14:58   ` Matthew Heaney
2001-12-05 18:55     ` Wes Groleau
2001-12-05 19:24       ` Matthew Heaney
2001-12-05 21:27         ` Wes Groleau [this message]
2001-12-06  0:19     ` tmoran
replies disabled

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