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.9 required=5.0 tests=BAYES_00 autolearn=ham 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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s72.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Easy question about Character manipulation References: <1170100860.762334.13830@l53g2000cwa.googlegroups.com> <1d5n0ksoz75yy.3t2hhxjr35fq$.dlg@40tude.net> <1170106218.6329.63.camel@localhost> <1170121405.6329.89.camel@localhost> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s72 1170267117 12.201.97.213 (Wed, 31 Jan 2007 18:11:57 GMT) NNTP-Posting-Date: Wed, 31 Jan 2007 18:11:57 GMT Organization: AT&T ASP.att.net Date: Wed, 31 Jan 2007 18:11:57 GMT Xref: g2news2.google.com comp.lang.ada:8780 Date: 2007-01-31T18:11:57+00:00 List-Id: (see below) wrote: > > It depends on whether they are value parameters or var (-iable) parameters. > Value parameters are in effect assigned their values, > and the permissive semantics of assignment compatibility apply; > var parameters must be of equivalent types, and type-equivalence in > ISO Pascal is name-equivalence. When I learned Pascal (not ISO), my understanding was that type A = 1 .. 3; was called a subrange, and defined A as what Ada calls a subtype of Integer. Since B = 1 .. 3; was another subtype of the same type (in Ada terms), assignment between them was no problem. -- Jeff Carter "Alms for an ex-leper!" Monty Python's Life of Brian 75