[chuck-users] idiom for requiring a class file?

Graham Coleman ravelite at gmail.com
Wed Feb 18 13:47:35 EST 2009


Rob,

I think the best we have is Machine.add

http://chuck.cs.princeton.edu/doc/language/spork.html#add

A common strategy is to have a library file of Machine.adds

http://www.iua.upf.es/~gcoleman/chuck/svn/lib.ck

Graham

On Wed, Feb 18, 2009 at 7:41 PM, Robert Poor <rdpoor at gmail.com> wrote:

> More questions:
>
> What's the proper ChucK idiom for automagically loading a class file from a
> file that uses that class?
>
> I can manually add MyClass.ck to the VM before loading the calling file,
> but that doesn't seem particularly scalable.  Is there an idiom that is
> equivalent to "include" or "require" in other languages?
>
> - Rob
>
> _______________________________________________
> 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/20090218/70fb2560/attachment.html>


More information about the chuck-users mailing list