[Xcb] _iterator functions
Barton C Massey
bart at cs.pdx.edu
Mon Aug 17 19:41:14 PDT 2009
In message <e2ed954f0908171011q766cb0e2kc1f29c31002c6569 at mail.gmail.com> you wrote:
> > IIRC no one could quite figure out why one would need an iterator to
> > access an array of ints.
>
> Of course, that argument can be extended to any fixed-length type--in
> other words, any type that we provide array accessors for today.
>
> The reason we decided to provide iterators for fixed-length compound
> types, even though they aren't necessary, was so that people don't have
> to think about which interface is supported for each type, most of the
> time. I think that was one of those "conversations in Bart's office"
> kind of decisions that informed a lot of XCB's structure, though you've
> expressed the same thought on the list since.
Yeah, now that you put it that way, I want to keep the
iterators. :-) They should be pretty easy to put back, I
think.
Thanks much for the thoughtful post.
Bart
More information about the Xcb
mailing list