comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.A.Leake@nasa.gov>
Subject: Re: [ANN] an EBNF parser and coding pattern tool (LGPL)
Date: 14 Feb 2003 15:34:19 -0500
Date: 2003-02-14T20:47:20+00:00	[thread overview]
Message-ID: <ud6lu8uus.fsf@nasa.gov> (raw)
In-Reply-To: 1045084569.415137@master.nyc.kbcfp.com

Hyman Rosen <hyrosen@mail.com> writes:

> Stephen Leake wrote:
> > That makes sense, assuming "Introspect" and "FieldTypes" are new C++
> > keywords. Are there any C++ compilers that actually do this? I don't
> > think it's in the current ISO C++ standard.
> 
> No, there aren't, which was the OP's point. I was describing an
> outline of how it could potentially be added to C++. If it was,
> Introspect (or something similar) could be made to look like a
> class template in namespace std, so no new keywords would be
> involved.

Ok, that makes sense.

> > Is there anything preventing the same techniques in Ada?
> 
> Ada doesn't have partial specialization of generics (that is,
> allowing completely different generic contents based on subsets
> of the parameters), so it can't do the recursive template stuff,
> at least as far as I know, given how poorly I know Ada.

Right, that makes sense as well.

> > How does this compare with an ASIS tool for Ada?
>  > Seems to me ASIS is a more straight-forward,
>  > and more flexible, approach.
> 
> I don't know enough about ASIS to say. Can an Ada program
> use ASIS in order to inspect itself? 

Not at run time; ASIS is a compile time tool.

> Can it apply ASIS within a generic to examine its generic
> parameters?

Yes, at compile time.

ASIS allows you to inspect a program that has been compiled. In this
case, you would use it to generate code to do the object tree walking.

In general, I suspect an ASIS approach would yeild a smaller run-time,
since you don't need run-time support for introspection. 

-- 
-- Stephe



  reply	other threads:[~2003-02-14 20:34 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-24  3:36 [ANN] an EBNF parser and coding pattern tool (LGPL) Cedric LEMAIRE
2003-01-24 16:40 ` Victor Porton
2003-01-25  0:33   ` llewelly
2003-01-29  2:55   ` Cedric LEMAIRE
2003-01-24 16:40 ` apm
2003-01-29  2:56   ` Cedric LEMAIRE
2003-01-31  2:25     ` Cedric LEMAIRE
2003-01-31  2:25     ` Anthony Williams
2003-02-01  4:10       ` Cedric LEMAIRE
2003-02-04 16:53     ` apm
2003-02-06 20:35       ` Cedric LEMAIRE
2003-02-06 20:36       ` Cedric LEMAIRE
2003-02-01  4:09   ` White Wolf
2003-02-03  1:28     ` Martin Ambuhl
2003-02-03  1:28     ` Hillel Y. Sims
2003-02-03 16:31       ` Tars_Tarkas
2003-02-03  1:29     ` Mark McIntyre
2003-02-03 16:31       ` CBFalconer
2003-02-04 16:53         ` Georg Bauhaus
2003-02-06 20:36           ` Cedric LEMAIRE
2003-02-07 17:33             ` Hyman Rosen
2003-02-08 18:22               ` Thant Tessman
2003-02-07 17:33             ` Anthony Williams
2003-02-11  6:15               ` Cedric LEMAIRE
2003-02-12  1:30                 ` Hyman Rosen
2003-02-13 20:03                   ` Brian Inglis
2003-02-15 20:13                     ` Hyman Rosen
2003-02-15 20:14                   ` Cedric LEMAIRE
2003-02-12  1:30                 ` Julián Albo
2003-02-15 20:14                   ` Cedric LEMAIRE
2003-02-19  6:10                     ` Alan Balmer
2003-02-12  1:30                 ` Stephen Leake
2003-02-12 18:22                   ` Hyman Rosen
2003-02-12 19:39                     ` Stephen Leake
2003-02-12 21:16                       ` Hyman Rosen
2003-02-14 20:34                         ` Stephen Leake [this message]
2003-02-15 20:14                   ` Cedric LEMAIRE
2003-02-07 17:33             ` Hyman Rosen
2003-02-03 16:31       ` ozbear
2003-02-03 16:31     ` Cedric LEMAIRE
replies disabled

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