From: jsa@alexandria (Jon S Anthony)
Subject: Re: Primitive Operations Question
Date: 1996/08/01
Date: 1996-08-01T00:00:00+00:00 [thread overview]
Message-ID: <JSA.96Jul31212144@alexandria> (raw)
In-Reply-To: 31FE812C.7B3D@ix.netcom.com
In article <DvEwtE.3Gz.0.-s@inmet.camb.inmet.com> stt@henning.camb.inmet.com (Tucker Taft) writes:
> : Much to my dismay, the following procedure compiles on the WebAda
> : (GNAT 3.04) compiler. By my reading of RM95 3.2.3, A and B don't
> : fit any part of the definition of primitive operations, so I
> : don't see why iheritance seems to be occurring. When I replace
> : all three types with a hierarchy of tagged types, both calls
> : fail to compile, as I would have expected.
>
> : Any insight would be much appreciated.
>
> Your reading is correct; GNAT must have a bug in this area.
OK, I stuck my foot in my mouth on this one. I missed the fact that
the types are not defined in a _package specification_ so 3.2.3(6)
does not apply. Or is there something more mysterious going on here?
BTW, I have wondered at times why there was this restriction as
opposed to allowing any operation within the same immediate scope of
the type declaration be primitive. It does seem a little cleaner to
have these things restricted to package specs, but it is also
(paradoxically) a little more confusing.
/Jon
--
Jon Anthony
Organon Motives, Inc.
1 Williston Road, Suite 4
Belmont, MA 02178
617.484.3383
jsa@organon.com
next prev parent reply other threads:[~1996-08-01 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-30 0:00 Primitive Operations Question Vance Christiaanse
1996-07-31 0:00 ` Jon S Anthony
1996-07-31 0:00 ` Robert A Duff
1996-07-31 0:00 ` Vance Christiaanse
1996-08-01 0:00 ` Robert A Duff
1996-08-01 0:00 ` Vance Christiaanse
1996-07-31 0:00 ` Tucker Taft
1996-07-31 0:00 ` Samuel Tardieu
1996-08-01 0:00 ` Jon S Anthony [this message]
1996-08-01 0:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox