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,7d678bbfa50f2552 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-04 01:03:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: function at specific address Date: Thu, 4 Mar 2004 09:03:56 +0000 (UTC) Organization: PVV Message-ID: References: <4046b131_1@127.0.0.1> NNTP-Posting-Host: k-083152.nt.ntnu.no X-Trace: tyfon.itea.ntnu.no 1078391036 7136 129.241.83.152 (4 Mar 2004 09:03:56 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Thu, 4 Mar 2004 09:03:56 +0000 (UTC) User-Agent: slrn/0.9.8.0 (Linux) Xref: archiver1.google.com comp.lang.ada:6050 Date: 2004-03-04T09:03:56+00:00 List-Id: On 2004-03-04, pburnand0-news@yahoo.com wrote: > There is perhaps a first simple solution : > A so called at_clause: > > > proc_address : constant Address := 16#789abcde#; > procedure foo( i: integer; j: integer; k: integer ); > for foo'Address use proc_address; > > > procedure foo( i: integer; j: integer; k: integer ) is > begin > Text_IO.Put_Line( "Hello, world !" ); > Text_IO.Put( "i = " ); > Text_IO.Put( i ); > Text_IO.Newline; > Text_IO.Put( "j = " ); > Text_IO.Put( j ); > Text_IO.Newline; > Text_IO.Put( "k = " ); > Text_IO.Put( k ); > Text_IO.Newline; > end; > Are you sure this works? The code has numerous bugs. -- Rox-Filer; *the* file manager => http://rox.sf.net/