comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: ANNOUNCE: Avatox 1.0 is now available
Date: Thu, 07 Sep 2006 21:46:13 +0100
Date: 2006-09-07T21:46:13+01:00	[thread overview]
Message-ID: <m2u03jquay.fsf@grendel.local> (raw)
In-Reply-To: XfSdncT-efwBxGLZnZ2dnUVZ_tqdnZ2d@megapath.net

"Randy Brukardt" <randy@rrsoftware.com> writes:

> It is reported that determining whether a type is limited takes 96
> lines of Ada (ASIS) code - but this is a property that every Ada
> compiler has a subprogram to calculate. It should be directly
> available in ASIS.

Via Traits, yes? (which struck me as more than a bit of a kludge when
I grasped it). It takes me about 60 lines to process all the
possible/appropriate traits (assuming that the ASIS tree is
well-formed, so that if a declaration has an
Asis.An_Abstract_Limited_Private_Trait it's appropriate to mark it
abstract, limited and private).

I see that this isn't always quite obvious: I have

    type Request is limited private;

giving

    <private_type_declaration limited="true" private="true">
      <defining_identifier>Request</defining_identifier>
      <private_type_definition limited="true" private="true">
      </private_type_definition>
    </private_type_declaration>

which seems odd (I guess that the definition is of the anonymous type
of which the declaration is the first named subtype?)

> Moreover, virtually everything in ASIS is currently optional, which
> makes writing ASIS programs that are portable very difficult. Plus,
> the standard itself is poorly written, and it's organization is such
> that it is arguable that ASIS users (not to mention implementers)
> need a license from ISO. So we're going to be busy redoing the
> entire standard.

This sounds like good news.



  reply	other threads:[~2006-09-07 20:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-17  0:58 ANNOUNCE: Avatox 1.0 is now available Marc A. Criley
2006-08-17  2:10 ` Jeffrey Creem
2006-08-18  8:03 ` Pascal Obry
2006-08-18  8:04 ` Pascal Obry
2006-08-18  8:05 ` Pascal Obry
2006-08-21 20:59 ` Simon Wright
2006-08-24  0:41   ` Marc A. Criley
2006-08-24  6:03     ` Simon Wright
2006-08-25  1:15       ` Marc A. Criley
2006-09-06 23:29       ` Randy Brukardt
2006-09-07 20:46         ` Simon Wright [this message]
2006-09-08  2:40           ` Randy Brukardt
2006-09-08 13:40             ` Georg Bauhaus
2006-09-09  8:28               ` Manuel Collado
2006-09-09 12:21                 ` Simon Wright
2006-09-11  7:58                   ` Manuel Collado
2006-09-09 18:56                 ` Marc A. Criley
2006-09-11  8:10                   ` Manuel Collado
replies disabled

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