[chuck-users] Importing modules
Michael Heuer
heuermh at gmail.com
Thu May 28 11:07:39 EDT 2015
Hello Ronan,
Is Machine.add("module1.ck"); what you might be looking for?
I have one big import file that Machine.adds all the ChucK classes in the
library
https://github.com/heuermh/lick/blob/master/import.ck
Then I usually
$ chuck --loop &
$ chuck + import.ck
$ chuck + some-other-stuff.ck
michael
On Thu, May 28, 2015 at 6:59 AM, Ronan Klyne <rklyne at gmail.com> wrote:
> Hi all,
>
> I apologise if I'm just missing the relevant documentation, but I can't
> see how to import classes from one module into a second module. I want to
> declare a big base class once and subclasses in a different file.
> Can anyone tell me if this is possible?
>
> Thanks,
>
> Ronan
>
>
> --
>
> # r
>
> _______________________________________________
> 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/20150528/85f91e30/attachment-0001.html>
More information about the chuck-users
mailing list