From: mheaney@on2.com (Matthew Heaney)
Subject: Re: Missing in Booch: range operations
Date: 13 Nov 2002 12:22:54 -0800
Date: 2002-11-13T20:22:54+00:00 [thread overview]
Message-ID: <1ec946d1.0211131222.20775b96@posting.google.com> (raw)
In-Reply-To: 3dcccf4d$0$308$bed64819@news.gradwell.net
porton@ex-code.com (Victor Porton) wrote in message news:<3dcccf4d$0$308$bed64819@news.gradwell.net>...
>
> For some classes of containers e.g. for linked lists it is
> possible: throw an exception if te end of list reached
> (actually Ada compilers will throw these "automagically").
Yes, that's true, but the problem is that you don't always iterate to
the back of the container, ie
I : Iterator_Type := Find_X (First (C), Back (C));
J : Iterator_Type := Find_Not_X (I, Back (C));
begin
while I /= J loop
In this example iterator J probably does *not* designate the end of
the container.
> A good thing to have a debug version where iterators "know"
> about containers.
If there's interest, I could always supply checked versions, that
implement the iterators and the containers with whatever extra state
is necessary to check that the iterators are being used properly.
> See www.STLport.org for an C++ STL with extensive debugging.
Yes, I am familiar with this implementation. Perhaps we could use
this as a model to build a debug version of Charles.
next prev parent reply other threads:[~2002-11-13 20:22 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-08 10:09 Missing in Booch: range operations Victor Porton
2002-11-08 15:01 ` Stephen Leake
2002-11-08 21:07 ` Matthew Heaney
2002-11-09 13:56 ` Simon Wright
2002-11-13 20:17 ` Matthew Heaney
2002-11-08 21:35 ` Matthew Heaney
2002-11-09 8:24 ` Victor Porton
2002-11-13 20:22 ` Matthew Heaney [this message]
2002-11-13 22:28 ` Stephen Leake
2002-11-09 8:46 ` Victor Porton
2002-11-09 14:12 ` Simon Wright
2002-11-09 14:04 ` Simon Wright
2002-11-09 16:12 ` Victor Porton
2002-11-09 20:00 ` Simon Wright
2002-11-11 5:41 ` Victor Porton
2002-11-11 6:39 ` Simon Wright
2002-11-11 7:50 ` Victor Porton
2002-11-13 20:26 ` Matthew Heaney
2002-11-13 22:28 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox