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: Brian Rogoff Subject: Re: Reuseable Scientific Types Package Date: 2000/07/12 Message-ID: #1/1 X-Deja-AN: 645504303 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@verio.net X-Trace: nuq-read.news.verio.net 963414878 206.184.139.136 (Wed, 12 Jul 2000 15:14:38 GMT) Organization: Verio MIME-Version: 1.0 NNTP-Posting-Date: Wed, 12 Jul 2000 15:14:38 GMT Newsgroups: comp.lang.ada Date: 2000-07-12T00:00:00+00:00 List-Id: On Wed, 12 Jul 2000, David Kristola wrote: > On Mon, 10 Jul 2000 13:51:06 -0700, Howard W. LUDWIG wrote > (in message <396A373A.1B80329F@lmco.com>): > > > David Kristola wrote: > >> A third option... > >> > >> I too needed types with units. With a little bit of work, i created a > >> program to auto-generate a types package with appropriate operators for > >> all of the types needed (an extensive list, which caused the number of > >> operators to explode). > > {snip} > ... snip again ... > > 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. -- Brian