| 1 |
SinOsc foo @=> UGen @ bar; |
| 2 |
|
| 3 |
// static typing |
| 4 |
if( foo.typeOf().name() != "SinOsc" && bar.typeOf().name() != "UGen" ) |
| 5 |
{ <<< "error" >>>; me.exit(); } |
| 6 |
|
| 7 |
// get the instanced type |
| 8 |
if( foo.typeOfInstance().name() == "SinOsc" && |
| 9 |
bar.typeOfInstance().name() == "SinOsc" ) <<< "success" >>>; |