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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2308afbbe4ecec0b X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Subverting 'Access for Sub-programs Date: 1999/08/14 Message-ID: <7p2n3g$us9$1@nnrp1.deja.com>#1/1 X-Deja-AN: 512488000 References: <37A71EF1.2201@dera.gov.uk> <37A7FDE8.4F5@dera.gov.uk> <7o9vrv$qgt$1@wanadoo.fr> <7oc5ih$6mb$1@wanadoo.fr> <7oejga$28i$1@nnrp1.deja.com> <37AEF7BF.7BBC8E06@averstar.com> <7oqahu$3s0$1@nnrp1.deja.com> <37B18CF0.F50A802B@gandalf.atm.fh-luebeck.de> <7osa8r$gdq$1@nnrp1.deja.com> <37B2D220.9CAAD611@gandalf.atm.fh-luebeck.de> X-Http-Proxy: 1.0 x38.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Sat Aug 14 03:17:10 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-08-14T00:00:00+00:00 List-Id: In article <37B2D220.9CAAD611@gandalf.atm.fh-luebeck.de>, "Dmitry A. Kazakov" wrote: > 2. Otherwise (when used locally) it should be passed by reference, > which would lift all unnecessary (in this case) limitations of 'access. > The same way you pass a variable. Passing something by reference is completely equivalent to passing it by pointer at the calling sequence level, and if you are calling a C program, it could not care whether you pass an array as an IN parameter, or pass a pointer to an array. The same is true of procedures. Passing a procedure by reference to foreign code would be identical to passing it by pointer. Yes, if you are only talking about ada-to-ada there is some protection (although I really think that the scheme proposed by the design team in mapping document 2 is a lot neater, and you should review that thoroughly before making your own suggestions). But in practice call back programming VERY often involves interfacing to external code, in which case passing by reference vs passing by pointer is identical. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.