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.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,f127842852d2f03a X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: About conversions Date: 2000/11/24 Message-ID: <8vnvsa$pro$1@wanadoo.fr>#1/1 X-Deja-AN: 697545553 References: <8vb0h9$1ou$1@nnrp1.deja.com> <8vbfds$dih$1@nnrp1.deja.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 975143626 26488 193.250.72.195 (25 Nov 2000 09:13:46 GMT) Organization: Wanadoo, l'internet avec France Telecom X-MSMail-Priority: Normal NNTP-Posting-Date: 25 Nov 2000 09:13:46 GMT Newsgroups: comp.lang.ada Date: 2000-11-25T09:13:46+00:00 List-Id: "Stephen Leake" a �crit dans le message news: u8zqe5klh.fsf@gsfc.nasa.gov... > Robert Dewar writes: > > > > > > > It's really there to provide an easy explanation for what > > happens in the case of derived types. I think it's actually > > misguided, because although it makes the explanation of derived > > types easier, it introduces a bogus misleading feature into the > > language that is of very little practical use and which causes a > > lot of confusion, even among people who know Ada well! > > I think that's a bit strong. I've had occasion to use type conversion > on out parameters, without using derived types (no examples readily at > hand, or at least they are hard to find). I should think needing to > convert an out parameter would happen about as often as needing to > convert an in parameter, or a function result. The syntax may seem a > little backwards, but if you think of it as "convert this object as > needed to match the subprogram specification" it makes more sense. > Typical example is if you define: type My_String is array (My_integer_type range <>) of character; It is nice to be able to use Get_Line... -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog