Help understanding types
From: Jim <nospam_at_please.com>
Date: Sun, 23 Nov 2003 15:02:20 -0500
Message-ID: <Cm8wb.981$dt2.117854_at_news20.bellglobal.com>
Hello,
Date: Sun, 23 Nov 2003 15:02:20 -0500
Message-ID: <Cm8wb.981$dt2.117854_at_news20.bellglobal.com>
Hello,
TYPE POINT
I don't understand the distinction between components that make up a
representation, and components that make up a type. How can a value of type
'Point' be scalar if I (as a user) can access the X and Y members? Doesn't
this exactly satisfy the definition of a scalar type as "A type whose values
are explicitly defined to have a set of user visible, directly accessible
components".? (Aren't the X and Y co-ordinates above components, user
visible, and directly accessible?)
POSSREP Cartesian { X Rational, Y Rational};
The explanation given in the book isn't entirely clear to me, so if somebody else could put it in different words I would be grateful.
Thanks,
Jim Received on Sun Nov 23 2003 - 21:02:20 CET