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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3ce5636289df1f84 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-13 14:24:44 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.physics.uiowa.edu!news.uni.edu!2067.resnet.uni.edu!lange92 From: Newsgroups: comp.lang.ada Subject: Re: pointer in C & in Ada Date: Mon, 13 Aug 2001 10:47:51 -0500 Organization: University of Northern Iowa Message-ID: References: <86772402.0108071439.1c3e1e40@posting.google.com> <87r8umlx13.fsf@deneb.enyo.de> NNTP-Posting-Host: 2067.resnet.uni.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: Didier Utheza In-Reply-To: Xref: archiver1.google.com comp.lang.ada:11872 Date: 2001-08-13T10:47:51-05:00 List-Id: On Thu, 9 Aug 2001, Didier Utheza wrote: > Thanks for the information. My guess is that is usefull for interfacing > with C that uses it for anything. > > > > About Ada95, like you I am in the vague. My guess is that it is not > > > possible in pure Ada, I found this routine somewhere in a GPL'd work long ago: type handler is access function (state : t_state) return Integer; There was no obvious use for "state", though I would expect it to be used for something like saving the stack, since this was actually used in a routine for assigning interrupt handlers. The "return Integer" I would assume to make this of the type "int *" instead of "void *", but I would imagine it could be used for something else with a little modification. Perhaps it could be written as an access type to a procedure instead of a function? Perhaps this could be a little light at the end of the tunnel, I don't know. But I thought it was a stroke of pure genius when I saw it, myself. DanL