comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Missing in Booch: range operations
Date: 09 Nov 2002 14:04:59 +0000
Date: 2002-11-09T14:04:59+00:00	[thread overview]
Message-ID: <x7vvg36zvn8.fsf@smaug.pushface.org> (raw)
In-Reply-To: 3dcb8eec$0$307$bed64819@news.gradwell.net

porton@ex-code.com (Victor Porton) writes:

> Range operations (deleting the range between two iterators, inserting 
> content of a container or its subrange into a position of another 
> container etc.) are missing in current Booch. Just to make sure that 
> these are not forgotten.

They are missing from the BCs because they were not in the C++ BCs of
which the Ada BCs are a translation. (I am on somewhat weak ground
here, because the C++ iterators were defined in the concrete
containers, somewhat like Charles).

I don't think you can rely even on "=" being meaningfully defined for
present BC iterators -- indeed, having more than one iterator over a
container is odd, and dangerous if you use Delete_Item_At.

> BTW, these should throw an exception if the begin and the end of the 
> range are from different containers.

Now that I can agree with, though there are arguments the other way.



  parent reply	other threads:[~2002-11-09 14:04 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
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 [this message]
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