From: Keith Thompson <kst@cts.com>
Subject: Re: One type for all
Date: 1999/07/18
Date: 1999-07-19T06:40:42+00:00 [thread overview]
Message-ID: <yecaestb0r9.fsf@king.cts.com> (raw)
In-Reply-To: 7mttci$edv$1@nnrp1.deja.com
Robert Dewar <robert_dewar@my-deja.com> writes:
[...]
> So thanks, it is indeed the case that Pascal does NOT have
> structural type equivalence, which is what I remembered (any
> other conclusion would have been a big surprise!)
Right. After I posted the previous article, it occurred to me that
the phrase "same type" might be ambiguous -- for example, that two
similar record type declarations might be considered to create two
names for the same type. Fortunately, section 6 says:
If a type representation does not consist only of a type
identifier, then it represents an entirely new type.
So yes, standard Pascal does not use structural type equivalence, at
least not for record types. (Though I seem to recall that some
dialects do use structural equivalence.)
--
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.
next prev 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 ` Keith Thompson
1999-07-19 0:00 ` Robert Dewar
1999-07-18 0:00 ` Keith Thompson [this message]
1999-07-19 0:00 ` Tucker Taft
1999-07-19 0:00 ` Robert A Duff
1999-07-20 0:00 ` Robert Dewar
1999-07-20 0:00 ` Bill Findlay
1999-07-18 0:00 ` Samuel T. Harris
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox