std.bitarray examples

Bill Baxter dnewsgroup at billbaxter.com
Sat May 10 12:44:48 PDT 2008


Jarrett Billingsley wrote:
> "Janice Caron" <caron800 at googlemail.com> wrote in message 
> news:mailman.583.1210419927.2351.digitalmars-d at puremagic.com...
>> On 10/05/2008, Me Here <p9e883002 at sneakemail.com> wrote:
>>> Really? Which documentation are you reading because the documentation on 
>>> my
>>>  harddrive that D1/Phobos
>> Oops. Using D2.
>>
>> D2 has bitfields. You might want to consider moving up. :-)
> 
> You don't *have* to use D2 in order to use bitfields.  There's also the std2 
> project (http://www.dsource.org/projects/std2) which ports many of the new 
> modules in phobos 2, including std.bitmanip, to D1. 

Yes, it looks like std.bitmanip is available in std2.  But not 
everything is.

The project is kind of on hold until Walter fixes IFTI bugs for D1, 
because Andrei started going wild with APIs that require being able to 
IFTI remaining parameters when the first few are explicitly specified.

Example from memory:  all the nifty sorting functions require a string 
parameter for the "a<b" predicate part, but in D2 can infer the rest of 
the template arguments.  In D1 if you specify any template parameter it 
instantly stops trying to deduce anything.

--bb



More information about the Digitalmars-d mailing list