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,9d0b383ee17c13af X-Google-Attributes: gid103376,public From: Keith Thompson Subject: Re: One type for all Date: 1999/07/18 Message-ID: #1/1 X-Deja-AN: 502480540 References: <3783E0D2.5D74243@boeing.com> <3786741C.E73F1124@hso.link.com> <7mdobd$fu$1@nnrp1.deja.com> <1999Jul12.193436.1@eisner> <7mqueq$k7e$1@nnrp1.deja.com> X-Complaints-To: usenet@nusku.cts.com X-Trace: nusku.cts.com 932329863 21954 198.68.168.21 (18 Jul 1999 20:31:03 GMT) Organization: CTS Network Services NNTP-Posting-Date: 18 Jul 1999 20:31:03 GMT Newsgroups: comp.lang.ada Date: 1999-07-18T20:31:03+00:00 List-Id: Robert Dewar writes: [...] > Well I am not sure I get that joke, but I am a little surprised > that no one has chimed in here to give the exact Pascal rules > from the standard (either one :-) Oh, all right, if you insist. 8-)} In the Pascal User Manual and Report, third edition (1985) by Jensen and Wirth, section 6.5, Type Compatibility: ] Two types are said to be _compatible_ if any of the following four ] conditions is true. ] ] (a) They are the same type. ] (b) One is a subrange of the other, or both are subranges of the ] same host type. ] (c) Both are set types, their base types are compatible, and either ] both are packed or neither is packed. ] (d) Both are string types with the same number of components. Since this edition is based on the ISO Pascal Standard, I presume the standard itself says essentially the same thing. (I have a copy lying around somewhere, but I can't find it.) -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> One of the great tragedies of ancient history is that Helen of Troy lived before the invention of the champagne bottle.