[fluxus] editor retraction

nik gaffney nik at fo.am
Mon Jun 27 06:14:52 PDT 2005


> I'm not sure I get exactly what you mean, but maybe a better way of
> doing this would be to do something like
> 
> (define (osc-repl)
>     (if (osc-msg "/code") ; if /code message is recieved
>         (eval-string (osc 0))) ; read the first argument as code
>     (if (osc-msg "/foo") ; if /foo message is recieved
> 	(do-something-else))
>     (render-stuff)) ; call other functions
> 
> (start-osc "88008")
> (every-frame "(osc-repl)")
> 
> then you could send a message along the lines of
> /code "(build-sphere 12 12)"
> 
> you could send one message for code that is to be evaluated once, and
> another for code to be evaluated each frame etc etc.

nice,.  but i was hoping to avoid the situation where sending something like
/code '(load "another-file.scm")' destroys the repl when its evaluated,
   ..  . i suppose i could just be more careful ;)

thanks,
nik




More information about the Fluxus mailing list