[chuck-users] is there a way of doing "callbacks" ( i.e. passing function as argument to be called later ) ?
heuermh at gmail.com
Tue May 22 18:19:57 EDT 2012
henrique matias wrote:
> This is a question Chris did to me and it reminded me some related questions
> i forgot to ask:
> Is there a type "function" or type "Class" ?
Class yes, function no unfortunately. The workaround I use is small
"functor" classes, similar in style to inner classes in java. E.g.
Some doc here (that needs a lot of updating)
> Is there anyway for "evaluating" a string to chuck code in order to do
You might be able to hack this by writing to a temp file and Machine.add'ing it.
More information about the chuck-users