comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!agate!doc.i
Subject: Re: Type declarations in a subprogram
Date: 17 Jun 93 16:30:42 GMT	[thread overview]
Message-ID: <1993Jun17.180625@lglsun.epfl.ch> (raw)

In article <C8rt5H.76E@inmet.camb.inmet.com>, stt@spock.camb.inmet.com (Tucker 
Taft) writes:
: ...
: any extension of a tagged type must be at the 
: same "accessibility" level as the parent type.
: ("Accessibility" level is essentially the lexical nesting level,
: but ignoring package nesting -- only subprograms and
: tasks create new levels of accessibility.)
: 
: Tagged types may be declared in the declarative 
: part of a subprogram, but they are then restricted to that "universe."

So the only difference would then be that one could derive an new type
from integer but one couldn't derive a new type from a tagged type
(declared at another "accessibility" level) inside a subprogram.

Looks much more reasonable than the rule I saw. Ada 9X is really
starting to shape up nicely.

: In Ada 9X, we have tried to remove certain "arbitrary" 
: Ada 83 restrictions that didn't add to reliability,
: while choosing a set of restrictions for the new 9X features that
: ensure that inherent reliability remains the hallmark for Ada.
: 
: >Robb
: 
: S. Tucker Taft    stt@inmet.com
: Ada 9X Mapping/Revision Team
: Intermetrics, Inc.
: Cambridge, MA  02138
: 

Robb

             reply	other threads:[~1993-06-17 16:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-06-17 16:30 cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!agate!doc.i [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-06-17 14:48 Type declarations in a subprogram Tucker Taft
1993-06-17 11:41 pipex!warwick!zaphod.crihan.fr!vishnu.jussieu.fr!univ-lyon1.fr!scsing.swi
1993-06-16 20:28 cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!usc!elroy.j
1993-06-16 19:38 cis.ohio-state.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news.usafa.af.mil!kirk!cwarack
1993-06-16 16:35 cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!usenet.ins.
1993-06-16 15:17 cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox