7 Nov
2006
7 Nov
'06
7:01 p.m.
Hi!
A : is it possible to quit Chuck from Chuck? I need to quit chuck when a certain osc message arrives, and i was wondering if there is a command to do this.
In addition to Machine.crash(), huh huh, there is 'me.exit()' which exits the current shred. This is used in the examples when a HID device can't be opened. But in theory it can go anywhere.
B: can i store references to functions in variables? similar to the python: def myfunc(): dowhatever myvar = myfunc myvar()
Currently, no. To achieve the same effect, you will need to use polymorphic inheritance of classes in ChucK right now. Hope this helps. Best, Ge!