A library similar to boost::bind

Ivan Senji ivan.senji_REMOVE_ at _THIS__gmail.com
Fri Jul 7 23:27:56 PDT 2006


Tom S wrote:
> Lutger wrote:
>> I'm a little late, but thanks!!! I was hoping somebody would do this.
>> It works
>> like a charm.
>> I tried studying the source, and while it's a LOT better to follow
>> than boost, I
>> discovered I don't understand metaprogramming at all (yet), unfortunatly.
>> Can I ask you, how can I use the Tuple type and what are it's features?
>> This much I figured out:
>>
>> Tuple!(int,int) someTuple;
>> someTuple.val!(1) = 5;
>> assert(someTuple.val!(1) == 5);
> 
> Thanks for testing and kind words :)
> I've uploaded an updated version at the same address:
> http://158.75.59.9/~h3/code/bind.rar
> 

Wow! Great peace of code, I really learned a lot from it :)
I also agree with Lutger, something like this should be in Phobos/Ares.




More information about the Digitalmars-d-announce mailing list