comp.lang.ada
 help / color / mirror / Atom feed
From: David Kristola <David95037@See-My.Sig>
Subject: Re: Reuseable Scientific Types Package
Date: 2000/07/13
Date: 2000-07-13T00:00:00+00:00	[thread overview]
Message-ID: <01HW.B592E73203C7AC1B05DE478C@news.pacbell.net> (raw)
In-Reply-To: Pine.BSF.4.21.0007120805010.4351-100000@shell5.ba.best.com

On Wed, 12 Jul 2000 8:13:24 -0700, Brian Rogoff wrote
(in message <Pine.BSF.4.21.0007120805010.4351-100000@shell5.ba.best.com>):

(i said)
>> I think the idea of having a code generator might be reusable.
>> A user could enter in the set of types she is interested in
>> and produce a types package with just those types.  Any
>> individual project is likely to be limited in the units that
>> are important.
> 
> Actually, the idea of a code generator is extremely useful, but I thought 
> macros were considered a non-no in the Ada community. A powerful macro 
> system would allow you to do a lot more than just handle systems of units. 
> You might want to examine some other macro and preprocessing systems, like 
> those of Common Lisp, Scheme, Dylan, M5, and CamlP4. 

Ada has no defined macro system, but there is nothing to stop someone from
using external macros.  I have used macros in Ada code under VADS, and i
know (but do not personally use) that macros are available under Rational
Apex.

The code generator i mentioned above could possibly be constructed using
macros, but the one i developed at work is not a macro, it is a program
created in Ada, and maintained in our CM structure.  If we need to add a
type to the list of supported types, we would modify the generator, check
in those modifications, run it, and check in the 8 source files it produces
(which are also under CM control).


-- 
--djk, keeper of arcane lore & trivial fluff
Home: David95036 plus 1 at america on-line
Spam: goto.hades@welovespam.com





      reply	other threads:[~2000-07-13  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3963A48E.6A2AF132@gbr.msd.ray.com>
     [not found] ` <JpR85.123$R31.66951@nnrp2.sbc.net>
     [not found]   ` <39646F40.A8277C4E@linuxchip.demon.co.uk>
     [not found]     ` <01HW.B58C5C88023DF64C05DE478C@news.pacbell.net>
     [not found]       ` <396A373A.1B80329F@lmco.com>
2000-07-12  0:00         ` Reuseable Scientific Types Package David Kristola
2000-07-12  0:00           ` Brian Rogoff
2000-07-13  0:00             ` David Kristola [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