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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,770f689069566e46 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: protected types and functions in Ada95 (Newbie) Date: 1997/04/25 Message-ID: #1/1 X-Deja-AN: 237289392 References: <335F2DF6.827@und.ida.liu.se> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-04-25T00:00:00+00:00 List-Id: Bob says <> I must admit that in the GNAT world, when writing standard libraries (including the predefined random numbe generator, where we cannot change to use 'Access because the interface was not designed that way, and in the SPITBOL package for example), I am making more and more use of the GNAT specific approach that allows one to take ;'Unrstricted_Access of a formal parameter if it is passed by reference. yes, this is horrible, but it is better to have a horrible kludge in the implementation of the body, than force kludges on all implementors. (sorry I mean by implementors here, clients who use the package). I still find the omission of in-out parameters in functions to be the most annoying concession to the viewpoint that the language should enforce some particular philosophy, even if it means putting in arbitrary non-orthogonal restrictions.