From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: Attributes
Date: 1998/10/29
Date: 1998-10-29T00:00:00+00:00 [thread overview]
Message-ID: <F1LtFD.HLw.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 36388222.899A47F1@newtech.it
Alessandro (busato@newtech.it) wrote:
: does an attribute exist for getting a type from an object (i.e.
: variable)?
No. About the closest you can come is initializing a
class-wide object by copying an existing object. The
new class-wide object's tag is determined by the original
object's tag. (This capability is analogous to the "x like y"
capability of Eiffel.) For example:
X : T'Class := Y;
: ...
: Thanks,
: Alessandro
: busato@newtech.it
: Trieste (Italy)
: NE&T
--
-Tucker Taft stt@inmet.com http://www.inmet.com/~stt/
Intermetrics, Inc. Burlington, MA USA
An AverStar Company
prev parent reply other threads:[~1998-10-29 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-29 0:00 Attributes Alessandro
1998-10-29 0:00 ` Tucker Taft [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox