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!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Easy question about Character manipulation Date: Tue, 30 Jan 2007 15:18:34 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1170100860.762334.13830@l53g2000cwa.googlegroups.com> <1d5n0ksoz75yy.3t2hhxjr35fq$.dlg@40tude.net> <1170106218.6329.63.camel@localhost> <1170121405.6329.89.camel@localhost> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1170188315 791 192.74.137.71 (30 Jan 2007 20:18:35 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 30 Jan 2007 20:18:35 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:x7CpmTBV1os8BLAaVbRqitmUgUg= Xref: g2news2.google.com comp.lang.ada:8735 Date: 2007-01-30T15:18:34-05:00 List-Id: "(see below)" writes: > On 30/1/07 01:43, in article 1170121405.6329.89.camel@localhost, "Georg > Bauhaus" wrote: > >>> On the contrary, this *exactly* like (ISO Standard) Pascal. >> >> I don't think so, if a Pascal compiler is supposed >> to determine "the same type" (exact same type) by looking >> at the definition, not the name. Otherwise two compilers >> claiming to support ISO Pascal are broken: > > Trust me, I was one of the team that wrote the standard. 8-) OK. ;-) > T = 1 .. 3; > S = 1 .. 3; > This is not a matter of type equivalence, > it is a matter of automatic type conversion on assignment > (assignment compatibility), and that IS unlike Ada, of course. What about parameter passing? I was under the impression that one can pass something of type T to a parameter of type S, or a parameter of type Integer, or vice versa, in Pascal. Please correct me if I'm wrong. If I'm right on that point, then I claim that we're just arguing over terminology: saying "so-and-so are different types, but there are all kinds of implicit conversions" amounts to roughly the same thing as "so-and-so are the same type". The point is, if you say this in Ada: type T1 is range 1..10; type T2 is range 1..10; X : T1; Y : T2; is there any equivalent in Pascal that causes "X := Y" to be illegal (or similarly for parameter passing)? - Bob