From: "McDoobie" <someone@nospam.net>
Subject: Re: Constraint error?
Date: Sun, 03 Jun 2001 23:26:03 GMT
Date: 2001-06-03T23:26:03+00:00 [thread overview]
Message-ID: <fIzS6.25747$DG1.4262027@news1.rdc1.mi.home.com> (raw)
In-Reply-To: ywzS6.5844$Zy.4348898@newsrump.sjc.telocity.net
In article <ywzS6.5844$Zy.4348898@newsrump.sjc.telocity.net>, "David C.
Hoos, Sr." <david.c.hoos.sr@ada95.com> wrote:
> One obvious error is using the entire string "s" as the argument of the
> Float'Value attribute function call.
>
> You should be using Float'Value (S (1 .. len)
>
> Also, there's probably no reason to have the length of "s" so small --
> why not make it ten or fifteen characters long, so as to give greater
> flexibility as to what the user can enter.
That did it.
I'm gonna to pay much closer attention to the arguments I pass around.
Thanks for the help.
I'm really starting to like Ada, but compared to using C it still feels like
I'm wrestling a gorilla. I'll get it yet.
Thanks again.
McDoobie
chris@dont.spam.me
next prev parent reply other threads:[~2001-06-03 23:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-03 22:30 Constraint error? McDoobie
2001-06-03 23:13 ` David C. Hoos, Sr.
2001-06-03 23:26 ` McDoobie [this message]
2001-06-04 15:42 ` Ted Dennison
2001-06-04 16:12 ` Marin David Condic
2001-06-04 20:52 ` Robert A Duff
2001-06-04 20:50 ` Robert A Duff
2001-06-04 21:13 ` Ted Dennison
2001-06-04 21:44 ` Ehud Lamm
2001-06-05 12:21 ` Marc A. Criley
2001-06-05 15:22 ` Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox