comp.lang.ada
 help / color / mirror / Atom feed
From: tynor@prism.gatech.EDU (Steve Tynor)
Subject: Re: proposal for Ada preprocessor
Date: 14 Dec 89 15:11:17 GMT	[thread overview]
Message-ID: <4376@hydra.gatech.EDU> (raw)
In-Reply-To: 7423@hubcap.clemson.edu

In article <7423@hubcap.clemson.edu> billwolf%hazel.cs.clemson.edu@hubcap.clemson.edu writes:
...
>   It seems offhand that the effect of testing whether symbols are
>   defined or undefined can be automatically accomplished by defining
>   an enumerated type containing all the symbol names, creating a boolean
>   array indexed by that enumerated type, and initializing it with the
>   appropriate values by named association.  Then the user would simply
>   edit the named associations to set desired options to True and others
>   to False.  Perhaps you had more in mind than just checking for "defined"?

What about the cases where disabling a feature should prevent 'with'ing a
package? (e.g. don't 'with' a DEBUG_TRACE package in a released version) -
Your method will prevent calls to the trace procedures, but the DEBUG_TRACE
package would still be linked in to the executable (ignoring potential linker
optimizations that might recognize that none of that package's code is actually
called).

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Never put off until tomorrow what you can avoid altogether.   
                     
    Steve Tynor
    Georgia Tech Research Institute
    Artificial Intelligence Branch
    tynor@prism.gatech.edu

  reply	other threads:[~1989-12-14 15:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-12-12 20:30 Dave Emery's proposal for Ada preprocessor Daniel Lee
1989-12-13 14:31 ` arny.b.engelson
1989-12-13 22:23   ` Michael Schwartz
1989-12-14 14:47   ` William Thomas Wolfe, 2847 
1989-12-14 15:11     ` Steve Tynor [this message]
1989-12-14 20:40       ` William Thomas Wolfe, 2847 
1989-12-22 23:51     ` ending a language war (was "proposal for Ada preprocessor") Dick Dunn
1989-12-23 13:04       ` Markku Sakkinen
1989-12-26 21:59       ` Preprocessors & the "spirit of Ada" William Thomas Wolfe, 2847 
replies disabled

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