binding arbitrary function arguments

Kirk McDonald kirklin.mcdonald at gmail.com
Wed Jun 27 13:46:01 PDT 2007


Thomas wrote:
> Hello!
> 
> I'm trying to familiarize myself a bit with D translating idioms I'm used to from other languages. Binding function arguments I ran into a problem.
> 
> Is there a "good" way to bind an arbitrary function argument?

Yes! Use std.bind:
http://www.digitalmars.com/d/phobos/std_bind.html

-- 
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org


More information about the Digitalmars-d-learn mailing list