Re: BitArray/BitFields - Resumed and polishing

2013-01-06 Thread Dmitry Olshansky
07-Jan-2013 00:51, Era Scarecrow пишет: On Thursday, 3 January 2013 at 21:45:24 UTC, Era Scarecrow wrote: K, I'll likely re-work my multi-level huffman algorithmn and a LZW compression, although the LZW wouldn't make use of the more exotic features. Got half the LZW written, but I likely won't g

Re: BitArray/BitFields - Resumed and polishing

2013-01-06 Thread Era Scarecrow
On Thursday, 3 January 2013 at 21:45:24 UTC, Era Scarecrow wrote: K, I'll likely re-work my multi-level huffman algorithmn and a LZW compression, although the LZW wouldn't make use of the more exotic features. Got half the LZW written, but I likely won't get this done for a few days. Nearly

Re: BitArray/BitFields - Resumed and polishing

2013-01-03 Thread Era Scarecrow
On Thursday, 3 January 2013 at 21:15:19 UTC, Dmitry Olshansky wrote: 04-Jan-2013 00:11, Era Scarecrow wrote: Appending a slice *to* BitArray is perfectly fine as in fact any range of bool (or bit if you like). Any array-like or string-like container has to support appending a range of elemen

Re: BitArray/BitFields - Resumed and polishing

2013-01-03 Thread Dmitry Olshansky
04-Jan-2013 00:11, Era Scarecrow пишет: On Thursday, 3 January 2013 at 15:48:50 UTC, Dmitry Olshansky wrote: 1/3/2013 2:20 PM, Era Scarecrow wrote: Suddenly it won't work and slicing is only a range and can only be used in foreach. No surprise here. Basically container != range over it. It al

Re: BitArray/BitFields - Resumed and polishing

2013-01-03 Thread Era Scarecrow
On Thursday, 3 January 2013 at 15:48:50 UTC, Dmitry Olshansky wrote: 1/3/2013 2:20 PM, Era Scarecrow wrote: Suddenly it won't work and slicing is only a range and can only be used in foreach. No surprise here. Basically container != range over it. It all flows from there. Range doesn't have a

Re: BitArray/BitFields - Resumed and polishing

2013-01-03 Thread Dmitry Olshansky
1/3/2013 2:20 PM, Era Scarecrow пишет: On Thursday, 3 January 2013 at 07:57:46 UTC, Dmitry Olshansky wrote: 1/3/2013 6:05 AM, Era Scarecrow wrote: Hm, I'd think that having Slice type be: BitArraySlice{ BitArray* bp; size_t start, end; // all else forwards to the pointed array } should work

Re: BitArray/BitFields - Resumed and polishing

2013-01-03 Thread Era Scarecrow
On Thursday, 3 January 2013 at 07:57:46 UTC, Dmitry Olshansky wrote: 1/3/2013 6:05 AM, Era Scarecrow wrote: Hm, I'd think that having Slice type be: BitArraySlice{ BitArray* bp; size_t start, end; // all else forwards to the pointed array } should work avoiding the most of code duplication. W

Re: BitArray/BitFields - Resumed and polishing

2013-01-03 Thread Dmitry Olshansky
1/3/2013 6:05 AM, Era Scarecrow пишет: On Wednesday, 2 January 2013 at 21:00:38 UTC, Dmitry Olshansky wrote: 12/31/2012 9:35 PM, Era Scarecrow пишет: Personally I believe that if we introduce a slice of a BitArray as a separate range type that represents a view of array (but can't be appended

Re: BitArray/BitFields - Resumed and polishing

2013-01-02 Thread Era Scarecrow
On Wednesday, 2 January 2013 at 21:00:38 UTC, Dmitry Olshansky wrote: 12/31/2012 9:35 PM, Era Scarecrow пишет: Personally I believe that if we introduce a slice of a BitArray as a separate range type that represents a view of array (but can't be appended to, etc. it's just a RA range with sli

Re: BitArray/BitFields - Resumed and polishing

2013-01-02 Thread Dmitry Olshansky
12/31/2012 9:35 PM, Era Scarecrow пишет: As BitArray is coming back up and my resumed work I'll comment a few questions and suggestions and go from there. I'll polish up the code and try to resubmit it. Yay! On Saturday, 28 July 2012 at 21:07:31 UTC, Jonathan M Davis wrote: I would point o