Templated Function pointers
js.mdnq
js_adddot+mdng at gmail.com
Fri Nov 30 05:30:13 PST 2012
It seems one can accomplish this using delegates assigned by
generic functions. The delegate will end hold holding the "state"
of the function. It sort of acts like a binder. It seems to work
but more testing needs to be done. I'm not sure how efficient it
is or if there is a better way but basically it seems rather
elegant(rather than trying to create some new type to deal with
it).
More information about the Digitalmars-d-learn
mailing list