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,URG_BIZ autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7b5b3c67aa2a73fe X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "(see below)" Newsgroups: comp.lang.ada Subject: Re: Easy question about Character manipulation Date: Wed, 31 Jan 2007 23:23:01 +0000 Message-ID: References: <1170100860.762334.13830@l53g2000cwa.googlegroups.com> <1d5n0ksoz75yy.3t2hhxjr35fq$.dlg@40tude.net> <1170106218.6329.63.camel@localhost> <1170121405.6329.89.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net oF6JvN3bdyEIiWCfFu5gcQMJIHxWBa3XOdZCiPJFdDugpvkq1g User-Agent: Microsoft-Entourage/11.3.3.061214 Thread-Topic: Easy question about Character manipulation Thread-Index: AcdFjr/d/pHEU7GBEduzcQARJIjQTg== Xref: g2news2.google.com comp.lang.ada:8796 Date: 2007-01-31T23:23:01+00:00 List-Id: On 31/1/07 23:01, in article wcc8xfiztqi.fsf@shell01.TheWorld.com, "Robert A Duff" wrote: > The important things are assignment statements, initialization (which > Pascal doesn't have in the Ada sense), parameter passing (with or > without 'var'), and function return. From what you've explained, all > except 'var' parameters behave the way Jeff says above. Yup. > What's the rationale for treating 'var' specially? As I recall, there's > also a special rule in Pascal that you can't pass a component of a > packed record or array to a 'var' parameter. Isn't that enough? I think this was a matter of backward compatibility with existing implementations, and our "no new language design by committee" self-denying ordinance. (We broke that only to introduce conformant array parameters, at the urgent request of Hoare and with Wirth's explicit approval.) I guess there are also run-time checking overheads that would have been more of an issue in 1977 than 2007. I don't think that relaxing the rules for var parameters was ever seriously discussed, but to be honest my memory of this is close to nil. -- Bill Findlay chez blueyonder.co.uk