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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d8e7e976ead4a812 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-15 12:18:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!proxad.net!proxad.net!news-hub.cableinet.net!blueyonder!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Function pointer in Ada? Date: Tue, 14 May 2002 14:25:39 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <5f4adaeaa2a7b35810acd4e20fb98b25.86200@mygate.mailgate.org> <3ce15027.0@news.unibw-muenchen.de> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1021400741 11313 136.170.200.133 (14 May 2002 18:25:41 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 14 May 2002 18:25:41 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:24121 Date: 2002-05-14T18:25:41+00:00 List-Id: That seems a sick and twisted thing to want to do! :-) Anyway, off the top of my head, I'd guess that you can't do that. Ada tends to not let you have much control over its standard stuff because compilers may want to treat it very differently. (There may not be an actual function to point to, correct? The compiler may see 'Standard."+"' and just generate an add instruction.) However, you could define your own addition function that encapsulates the standard "+" operator and try getting a pointer to that. It might let you do what you want to do, but I suspect that whatever you are attempting to do, there is a better way than with pointers to functions. Don't try to make Ada look like C or C++ - learn to do it The Ada Way(tm). Perhaps if you describe the problem you are trying to solve, you might get a better answer here. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Kai Schuelke" wrote in message news:3ce15027.0@news.unibw-muenchen.de... > Hello, > > I managed to get a function pointer (left, right : FLOAT) return FLOAT but I > couldn't manage to get a pointer to the according Standard."+". I tried > various ways but had to use a workaround. Is it possible to do something > like: > > plus_pointer : pointer_type := access Standard."+"; >