comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Booch: iterator invalidation
Date: Fri, 8 Nov 2002 15:00:17 -0600
Date: 2002-11-08T15:00:17-06:00	[thread overview]
Message-ID: <usoag335uqj156@corp.supernews.com> (raw)
In-Reply-To: iYOy9.16284$Dc4.56479@rwcrnsc51.ops.asp.att.net

Jeffrey Creem wrote in message ...
>Usually no need to resort to #ifdef preprocessor stuff.. Just make a
generic formal
>that says error checking enabled. Generic actual parameter is a
>constant/static then any decent compiler will optimize out any of the
actual
>checks in the object code and you get the same effect as the #ifdefs
without
>the lack of portability.


That won't work for a compiler which does generic sharing of
implementations. In that case, the code would remain all of the time.
(This is true of Janus/Ada and the ICC compiler.)

But why make it a parameter? Just make in a constant in the body of the
source code, and change it as needed.

              Randy.






  reply	other threads:[~2002-11-08 21:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-08 12:51 Booch: iterator invalidation Victor Porton
2002-11-08 13:26 ` Jeffrey Creem
2002-11-08 21:00   ` Randy Brukardt [this message]
2002-11-08 18:05 ` Victor Porton
2002-11-09 14:20 ` Simon Wright
2002-11-12 16:50   ` Stephen Leake
2002-11-12 18:28     ` Robert A Duff
2002-11-12 20:09     ` Simon Wright
2002-11-13 14:49       ` Stephen Leake
2002-11-12 17:42 ` Victor Porton
2002-11-12 20:11   ` Stephen Leake
2002-11-13  2:43 ` Victor Porton
2002-11-13 14:56   ` Stephen Leake
2002-11-13 15:40 ` Victor Porton
replies disabled

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