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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,18069d15345a10c8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-13 08:45:19 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!swiss.ans.net!news.dfn.de!scsing.switch.ch!swidir.switch.ch!epflnews!dinews.epfl.ch!di.epfl.ch!Magnus.Kempe From: Magnus.Kempe@di.epfl.ch (Magnus Kempe) Newsgroups: comp.lang.ada Subject: Re: Modulus and Remainder operations (Was Re: Help with a bit of C code) Date: 13 Oct 1994 08:27:31 GMT Organization: Ecole Polytechnique Federale de Lausanne Distribution: world Message-ID: <1994Oct13.092135@di.epfl.ch> References: <1994Oct11.161048.1058@nosc.mil> <37er8t$oh0@watnews1.watson.ibm.com> NNTP-Posting-Host: lglsun4.epfl.ch Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: 1994-10-13T08:27:31+00:00 List-Id: hbaker@netcom.com (Henry G. Baker) writes: : : ... the definer of [a limited] type has lost control of the type. : The 'textbook' definitions of prototypical limited types such as 'bank : accounts' are no longer safe in the presence of such equivocation. Henry, please read RM9X 6.2(4-10). The following declaration ensures that parameters of type T will always be passed by reference: package P is type T is limited private; private type T is limited record ... end record; -- NOTE: "limited" end P; Also, parameters of tagged types are always passed by reference. : See "How to Steal from a Limited Private Account--Why Mode INOUT : Parameters for Limited Types MUST be Passed by Reference". Ada : Letters XIII, 3 (May/June 1993), 91-95. Your problem is SOLVED In Ada 9X. -- Magnus Kempe "I know not what course others may take, but as for me, Magnus.Kempe@di.epfl.ch Give me Liberty... or give me Death!" -- Patrick Henry