comp.lang.ada
 help / color / mirror / Atom feed
From: Keith Thompson <kst@cts.com>
Subject: Re: One type for all
Date: 1999/07/18
Date: 1999-07-18T20:31:03+00:00	[thread overview]
Message-ID: <yeciu7hg0oo.fsf@king.cts.com> (raw)
In-Reply-To: 7mqueq$k7e$1@nnrp1.deja.com

Robert Dewar <robert_dewar@my-deja.com> 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  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center           <*>  <http://www.sdsc.edu/~kst>
One of the great tragedies of ancient history is that Helen of Troy
lived before the invention of the champagne bottle.




  parent reply	other threads:[~1999-07-18  0:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3783E0D2.5D74243@boeing.com>
1999-07-08  0:00 ` One type for all czgrr
1999-07-09  0:00 ` Samuel T. Harris
1999-07-10  0:00   ` Ehud Lamm
1999-07-12  0:00     ` Samuel T. Harris
1999-07-12  0:00   ` Robert Dewar
1999-07-12  0:00     ` Samuel T. Harris
1999-07-12  0:00     ` Larry Kilgallen
1999-07-17  0:00       ` Robert Dewar
1999-07-18  0:00         ` Samuel T. Harris
1999-07-18  0:00         ` Keith Thompson [this message]
1999-07-19  0:00           ` Robert Dewar
1999-07-18  0:00             ` Keith Thompson
1999-07-19  0:00             ` Robert A Duff
1999-07-20  0:00               ` Robert Dewar
1999-07-19  0:00             ` Tucker Taft
1999-07-20  0:00             ` Bill Findlay
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox