From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b7057cb195a2dcbd X-Google-Attributes: gid103376,public From: David Kristola Subject: Re: Reuseable Scientific Types Package Date: 2000/07/13 Message-ID: <01HW.B592E73203C7AC1B05DE478C@news.pacbell.net>#1/1 X-Deja-AN: 645843158 Content-Transfer-Encoding: 7bit References: <3963A48E.6A2AF132@gbr.msd.ray.com> <39646F40.A8277C4E@linuxchip.demon.co.uk> <01HW.B58C5C88023DF64C05DE478C@news.pacbell.net> <396A373A.1B80329F@lmco.com> <01HW.B5917CD403727A5405DE478C@news.pacbell.net> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@pacbell.net X-Trace: news.pacbell.net 963483931 63.194.212.92 (Thu, 13 Jul 2000 03:25:31 PDT) Organization: heaps of stacks User-Agent: Hogwasher 2.0 (Macintosh) MIME-Version: 1.0 NNTP-Posting-Date: Thu, 13 Jul 2000 03:25:31 PDT Newsgroups: comp.lang.ada Date: 2000-07-13T00:00:00+00:00 List-Id: On Wed, 12 Jul 2000 8:13:24 -0700, Brian Rogoff wrote (in message ): (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