Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hplsla!jima From: jima@hplsla.HP.COM (Jim Adcock) Newsgroups: comp.lang.c++ Subject: Re: Exception handling and transaction management? Message-ID: <6590181@hplsla.HP.COM> Date: 5 Jul 89 17:43:51 GMT References: <546@voodoo.UUCP> Organization: HP Lake Stevens, WA Lines: 35 >re: iterations > > basically, some linguistic concept that allows you to iterate > over the contents of a class, e..g, a bag, a list, a whatever. > > while it's true that C++ doesn't have iterators, it's not clear > that it needs them. Libg++ has the Pix (pseudo-index) class > that resolves this problem (albeit, perhpas not as `nicely' > as the iterators in clu). > > this is an important concept, but it's not clear that it needs > linguistic methods to be possible. The emerging standard for iterators seems to be overloading operator()() to provide interation. See Lippman pgs 260-261, among other examples. Then iteration becomes something like: anObject myInstance; CollectionClass myCollection; .... while (myInstance = myCollection()) { doSomethingWith(myInstance); ... } >re: exceptions Lippman pg 24 mentions "handle" -- actually changed since to "catch" -- but I haven't found this keyword discussed anywhere. Does anyone know if this relates to exception handling?