On Thu, Jul 2, 2009 at 4:24 PM, Candide Kemmler<cand...@palacehotel.org> wrote: > I have a simple question rel the DocSlice class. I'm trying to use the (very > handy) set operations on DocSlices and I'm rather confused by the way it > behaves. > > I have 2 DocSlices, atlDocs which, by looking at the debugger, holds a > "docs" array of ints of size 1; the second DocSlice is btlDocs, with a > "docs" array of ints of size 67. I know that atlDocs is a subset of btlDocs, > so the doing btlDocs.andNotSize(atlDocs) should really return 66. > > But it's returning 10.
The short answer is that all of the set operations were only designed for DocSets (as opposed to DocLists). Yes, perhaps DocList should not have extended DocSet... -Yonik http://www.lucidimagination.com