[chuck-users] code reusability

Brendan Asselstine mail.asselstine at gmail.com
Fri Jun 11 09:00:42 EDT 2010


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 at 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 at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20100611/4f9f3190/attachment.htm>


More information about the chuck-users mailing list