[chuck-users] Importing modules

Ronan Klyne rklyne at gmail.com
Thu May 28 11:14:26 EDT 2015


>From your code that looks like exactly what I need. I'll try it out later
when I am back at my Pi.

Thanks,

Ronan


On 28 May 2015 at 16:07, Michael Heuer <heuermh at gmail.com> wrote:

> 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
>>
>>
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
>


-- 

      # r
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20150528/a1c79f18/attachment.html>


More information about the chuck-users mailing list