comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Dowie <martin.dowie@btopenworld.com>
Subject: Re: pointer to intrinsic function?
Date: Sun, 5 Mar 2006 00:42:42 +0000 (UTC)
Date: 2006-03-05T00:42:42+00:00	[thread overview]
Message-ID: <dudc61$779$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com> (raw)
In-Reply-To: <1141510052.613466.30440@v46g2000cwv.googlegroups.com>

bantchev@math.bas.bg wrote:
> Hello all!
> 
> Can I get a pointer to an intrinsic function, such as
> function "+"(left,right: in float) return float ?
> If yes, how?  Thank you.

In my experience the answer is "no" [see RM 6.3.1 (11)].

You could wrap you're own inlined function but I'm not even sure what 
you would get with that - try it and check the assembler. E.g.

    function Add (L, R : Float'Base) return Float'Base;
    pragma Inline (Ada);
...
    function Add (L, R : Float'Base) return Float'Base is
    begin
       return L + R;
    end Add;

Why are you worried about this?

Cheers
-- Martin



  parent reply	other threads:[~2006-03-05  0:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-04 22:07 pointer to intrinsic function? bantchev
2006-03-05  0:08 ` jimmaureenrogers
2006-03-05  0:42 ` Martin Dowie [this message]
2006-03-05 13:04   ` bantchev
replies disabled

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