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,f127842852d2f03a X-Google-Attributes: gid103376,public From: "Warren W. Gay VE3WWG" Subject: Re: About conversions Date: 2000/11/21 Message-ID: <3A1AB12E.8780B626@home.com>#1/1 X-Deja-AN: 696238520 Content-Transfer-Encoding: 7bit References: <8vb0h9$1ou$1@nnrp1.deja.com> <8vbfds$dih$1@nnrp1.deja.com> <8ve71q$meh$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: MetroNet Communications Group Inc. MIME-Version: 1.0 NNTP-Posting-Date: Tue, 21 Nov 2000 10:30:52 MDT Newsgroups: comp.lang.ada Date: 2000-11-21T00:00:00+00:00 List-Id: Robert Dewar wrote: > In article , > Stephen Leake wrote: > > Robert Dewar writes: > > convert an out parameter would happen about as often as > > needing to convert an in parameter, or a function result. > > Not at all! Because you think of an out parameter as an Lvalue, > and conversions are not allowed as left sides in assignments. > If you really believe the above, you would want backwards > conversions on the left of assigments. > > Note that all other comparable languages allow conversions for > input parameters, NONE of them allows these strange out > conversions. > > Good advice is to avoid this feature almost always. To avoid it requires declaring another "receiving variable" of the correct type, and then converting it with a subsequent assignment. This is not only inconvenient, but would create an extra source of "duplicated variables", which complicates what would otherwise be a simpler piece of code. Consequently, I like the feature ;-) > > > Sent via Deja.com http://www.deja.com/ > Before you buy.