From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fe1400b7c31a72ce X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: pointer to intrinsic function? Date: Sun, 5 Mar 2006 00:42:42 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1141510052.613466.30440@v46g2000cwv.googlegroups.com> NNTP-Posting-Host: host86-131-217-145.range86-131.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com 1141519362 7401 86.131.217.145 (5 Mar 2006 00:42:42 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sun, 5 Mar 2006 00:42:42 +0000 (UTC) In-Reply-To: <1141510052.613466.30440@v46g2000cwv.googlegroups.com> User-Agent: Thunderbird 1.5 (Windows/20051201) Xref: g2news1.google.com comp.lang.ada:3269 Date: 2006-03-05T00:42:42+00:00 List-Id: 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