[chuck-users] determining the type of an Object in code

Kassen signal.automatique at gmail.com
Mon Sep 8 01:57:28 EDT 2008

2008/9/7 Michael Heuer <heuermh at gmail.com>

> Hello Kas,
> ChucK has a cast operator, so you should be able to cast the result of
> List.get(int), Iterator.next(), or the object parameter in a
> forEach(UnaryPredicate) to what you expect the Object to be.  This
> works:

Wow! Great stuff!

Thanks a lot for taking the time to figure this out and share.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20080908/d38f73de/attachment.htm>

More information about the chuck-users mailing list