[chuck-users] different classes and files talking to each other
crwicks at yahoo.com
Tue Apr 17 22:04:51 EDT 2012
If you're talking about defining your own object types via classes, you need to make sure that the .ck file containing your defined class gets added to the virtual machine first. The best way to do this is to instantiate the VM in one terminal by using the comand chuck --loop. After that, open another terminal and type chuck + Class.ck (replace class with whatever your filename is). Then go ahead and add the client (whatever file is utilizing your defined class). I'm not sure if this is what you're asking, and I'm new to ChucK myself, but hopefully this gets you started on the right track. The other way is to just type "chuck Service.ck client.ck" or whatever (it is necessary that the class containing your user-defined object is first). This works as well, but it's not as flexible on-the-fly as running chuck --loop.
From: henrique matias <hems.inlet at gmail.com>
To: chuck-users at lists.cs.princeton.edu
Sent: Tuesday, April 17, 2012 9:12 PM
Subject: [chuck-users] different classes and files talking to each other
Hello folks, hope everything is great over there! ( :
Am new to chuck, needless to say am impressed!
Am a bit confused how to share and control different classes and files from a central "machine".
The first idea was to create a static Event var and put every class listening to this event, but unfortunately we still can't instantiate non-native objects as static.
Would someone please point me to some basic structure/example?
Thanks a lot! Happy chucking!
chuck-users mailing list
chuck-users at lists.cs.princeton.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the chuck-users