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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd40601768eaf8fd X-Google-Attributes: gid103376,public From: "David Kristola" Subject: Re: 'constant functions' and access constant params (was Re: Array of Variant Records Question...) Date: 1999/09/27 Message-ID: <01HW.B415B1C500ED4CF906F6FB80@news.pacbell.net>#1/1 X-Deja-AN: 530189491 Content-Transfer-Encoding: 7bit References: <7r5vh3$imu1@svlss.lmms.lmco.com> <37d6a45c@news1.prserv.net> <37d6ccb6@news1.prserv.net> <7r77i8$i08$1@nnrp1.deja.com> <37d7c116@news1.prserv.net> <7r8t21$ov5$1@nnrp1.deja.com> <37d822a1@news1.prserv.net> <7reg02$t83@dfw-ixnews6.ix.netcom.com> <37DE8D09.C863CBC9@rational.com> <7roohh$s6r@dfw-ixnews7.ix.netcom.com> <37e01168@news1.prserv.net> <7rp86o$c6h@dfw-ixnews3.ix.netcom.com> <37E18CC6.C8D431B@rational.com> <7rs8bn$s6@dfw-ixnews4.ix.netcom.com> <37e2e58c@news1.prserv.net> <7s9nd0$cbe@dfw-ixnews17.ix.netcom.com> <37e8e067@news1.prserv.net> <7sas3p$bfa@dfw-ixnews3.ix.netcom.com> <37e994c0@news1.prserv.net> <7so9vb$59b@dfw-ixnews19.ix.netcom.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.snfc21.pbi.net 938501045 63.194.212.92 (Mon, 27 Sep 1999 23:44:05 PDT) Organization: heaps of stacks MIME-Version: 1.0 Reply-To: David95037@see-my.sig NNTP-Posting-Date: Mon, 27 Sep 1999 23:44:05 PDT Newsgroups: comp.lang.ada Date: 1999-09-27T00:00:00+00:00 List-Id: On Sun, 26 Sep 1999 22:38:59 -0700, Richard D Riehle wrote (in message <7so9vb$59b@dfw-ixnews19.ix.netcom.com>): > constant function F ( ... ) return ... The other form lets you mix constant and non-constant parameters: function F (Parm_1 : access constant T1; Parm_2 : access T2) return R; (Boy, this is going to mess up mode alignment. It is neat that "access" just happens to be as long as "in out"). What i would really like to know is; what can't i do with a constant access parameter in the body of the function? I would guess that i could not pass it as a parameter to another function unless that too was "access constant". -- --djk, keeper of arcane lore & trivial fluff Home: David95037 at aol dot come Rot13: Qnivq95037@nby.pbz Spam: goto.hades@welovespam.com