[comp.lang.eiffel] ANY and basic types

jwg1@gte.com (James W. Gish) (04/14/90)

I'm confused about the 'universality' of ANY.  It was my understanding
that the basic types INTEGER, REAL, BOOLEAN, CHARACTER were no longer
going to be treated as special (except that they would remain reserved
words in 2.2).  Maybe I read more into this than was intended, but I
took this to mean that the basic types would be treated as class
types, and I therefore assumed that they would inherit ANY.  But now, when
I attempt to do the following:

	value: ANY;
   b: BOOLEAN;
	value := b;

the compiler tells me that BOOLEAN is not a descendant class of ANY
and that BOOLEAN does not conform to ANY.  Is this because BOOLEAN is
an expanded class that has NO inheritance structure ?  If this is the
case, then it is overstating the case to call ANY a 'universal' class.

Also, has anyone else had problems with redefining attribute features?
The attempts I have made on my Decstation 3100 have resulted in
unaligned accesses or segmentation errors. (In fact, that is what led
me to try the above assignment.)


--
Jim Gish
GTE Laboratories, Inc., Waltham, MA
CSNET: jgish@gte.com    UUCP:  ..!harvard!bunny!jwg1