Try .toString(): it's the closest thing.

SinOsc foo;
Object bar;

class MyClass {
    float value;
}

MyClass myInstance;

<<<foo.toString()>>>;
<<<bar.toString()>>>;
<<<myInstance.toString()>>>;


"SinOsc:10061d9a0" : (string)
"Object:61000009e190" : (string)
"MyClass:61000009e140" : (string)

Best,
Casper


> 
>   1. Instanceof in ChucK (Will Hardwick-Smith)
> 
> From: Will Hardwick-Smith <[email protected]>
> To: [email protected]
> Date: 30 oktober 2014 23:34:57 CET
> Reply-To: ChucK Users Mailing List <[email protected]>
> Subject: [chuck-users] Instanceof in ChucK
> 
> 
> Say I have Object o, and I want to see if it is an instance of UGen or a 
> sub-class of UGen.
> Is there a way to check this in ChucK?
> 
> 
> _______________________________________________
> chuck-users mailing list
> [email protected]
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users

_______________________________________________
chuck-users mailing list
[email protected]
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users

Reply via email to