From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Booch: iterator invalidation
Date: 12 Nov 2002 11:50:19 -0500
Date: 2002-11-12T17:01:15+00:00 [thread overview]
Message-ID: <u65v268c4.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: x7visz6zuy2.fsf@smaug.pushface.org
Simon Wright <simon@pushface.org> writes:
> > It also would be great to have the debug version of Booch, checking
> > validity of iterators and raising an exception. With GNAT it can be
> > done as in C by #ifdef/#endif preprocessor directives (assigning a
> > long (may be 64, 128, or 256 bytes) counter incrementing on each
> > invalidation to each container and analogous counters to iterators
> > and comparing these counters).
>
> I am not going to include GNAT-specific stuff in the BCs if I can help
> it (and if there are any such I will do my best to remove them, just
> let me know!).
I believe "pragma Assert" is supported by all major Ada compilers at
this time; that could be used to give a good "debug version".
--
-- Stephe
next prev parent reply other threads:[~2002-11-12 16:50 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
2002-11-08 18:05 ` Victor Porton
2002-11-09 14:20 ` Simon Wright
2002-11-12 16:50 ` Stephen Leake [this message]
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