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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5bfab93693a9feee X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-25 16:09:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: parameter modes Date: 25 Dec 2002 18:09:40 -0600 Organization: LJK Software Message-ID: <0UZ4PCaz1aV9@eisner.encompasserve.org> References: <3e09fd53.18465812@news.freenet.de> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1040861322 19300 192.135.80.34 (26 Dec 2002 00:08:42 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Thu, 26 Dec 2002 00:08:42 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:32310 Date: 2002-12-25T18:09:40-06:00 List-Id: In article , Stapler writes: > > Do you know if it's possible within the Ada language to define an optional > compiler instruction or pragma that says something like this ... > > if memory_region < X_number_of_bytes then > > Pass_by_copy(memory_region, Destination); > > else > > Pass_by_access_type(memory_region); > > end if; You should count on your compiler to do something like that in places where it is legal and appropriate. If your compiler does not, perhaps a compiler you buy in the future will do so. Trying to work around the decisions a compiler makes can be painful for you in the future.