Machine.add( "foo.ck" );  - as defined here http://chuck.cs.princeton.edu/doc/language/spork.html

or just pass your library filename (e.g. "foo,ck") to chuck *before* your main program. Like this:

chuck library.ck usage.ck


On Fri, Jun 11, 2010 at 7:34 AM, Thomas Girod <girodt@gmail.com> wrote:
Hi there.

I'm currently working on a chuck project that is progressively
increasing in size. Some parts of this project are already quite
generic, and I will probably use them in other projects later (namely,
an interface to communicate with the novation's monome ripoff).

So I start to wonder: how can I organize my code for easy reuse ? What
are the options / good practices to write less monolithic chuck code ?
Is it possible to write something that could behave as a library ?

Thanks for your attention

Tom

_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users