comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Does Ada have macros ?
Date: 22 Mar 1995 20:34:51 -0500
Date: 1995-03-22T20:34:51-05:00	[thread overview]
Message-ID: <3kqj7r$7ku@gnat.cs.nyu.edu> (raw)
In-Reply-To: 3kn413$259@newsbf02.news.aol.com

Actually, there was a Steelman requirement that the lanuage developed
NOT have a macro capability.

This was a well-thought-out requirement. Compile time macro facilities
tend to be dreadfully overused, resulting in horrible maintenance
problems, and furthermore, there is a tendency to use them to patch
up glaring omissions in the language. For example, C has no named
constants, a very bad omission, but #define can be used to patch
over this gap.

The better way to handle the equivalent of conditional compilation is
in most instances to isolate the system dependent parts and then put
them in separate units with multiple implementations.




  reply	other threads:[~1995-03-23  1:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-21 17:56 Does Ada have macros ? B Catlin
1995-03-23  1:34 ` Robert Dewar [this message]
1995-03-24 12:25 ` Mitch Gart
1995-03-25 16:10   ` Henry Baker
1995-03-27  2:50     ` B Catlin
1995-03-27  9:15 ` David Arno
replies disabled

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