How to emulate Agents in C++
I have used the Boost Functor class and I think that's what you mean here
(at least in general). C++ Templates are AFAIR Turing complete, so you can
do a lot with them, but usually things end up being very very complicated
to use - especially if you make a small mistake and have to cope with page
long error messages that talk only about the templated classes, not where
you used them wrong.
Anyhow, till now I didn't see a mechanism that would allow curying
(which was the original question, and which is supported by agents).
Can you give me any pointers?
best regards,
Andreas
|