binding arbitrary function arguments
Jason House
jason.james.house at gmail.com
Wed Jun 27 17:35:47 PDT 2007
Thomas wrote:
>>> Is there a "good" way to bind an arbitrary function argument?
>> Yes! Use std.bind:
>> http://www.digitalmars.com/d/phobos/std_bind.html
>>
> Thanks for the suggestion.
> Actually I was aware of std.bind. But it does not seem to be capable of binding more than 10 arguments.
>
> Well, before I get told that I probably shouldn't use more than ten arguments I should maybe mention that I'm principally interested in learning D. That is I'd like to know if and how this general, "unlimited" binding can be done in D.
> (For all practical purposes I agree that it's likely not relevant - but for understanding and learning the language it may be.)
>
> Thomas
>
>
>
>
Why not open bind.d and look at the source? dmd/src/phobos/std/bind.d,
or something similar to that.
More information about the Digitalmars-d-learn
mailing list