comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: math: passing function to function
Date: Mon, 30 Apr 2001 14:38:48 GMT
Date: 2001-04-30T14:38:48+00:00	[thread overview]
Message-ID: <YNeH6.4011$SZ5.317784@www.newsranger.com> (raw)
In-Reply-To: 9cjham$lu4$1@eol.dd.chalmers.se

In article <9cjham$lu4$1@eol.dd.chalmers.se>, Staffan Dittmer says...
>
>I've tried using access to subprogram types to make something like
>function solver(fun: access to function to solve; ...) return long_float;
>which usually compiles ok, but exits raising 
>constraint error as soon as the code gets more involved than the 
>rudimentary examples given in the RM.

It was probably a real live Constraint_Error. That happens. Find the source, and
fix it.

If things are getting confusing for you, you might want to try throuroughly
testing the "fun" function before attempting to pass it to "solver". Make sure
to test around the boundries of all the types you use.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



      parent reply	other threads:[~2001-04-30 14:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-30 11:12 math: passing function to function Staffan Dittmer
2001-04-30 12:10 ` Jacob Sparre Andersen
2001-04-30 12:57 ` Marc A. Criley
2001-04-30 13:51   ` Staffan Dittmer
2001-04-30 14:38 ` Ted Dennison [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