Unified · Split
| @@ -1,5 +1,5 @@ | |||
| 1 | // name: apropos.ck | 1 | // name: apropos.ck |
| 2 | // (available in chuck-1.4.1.0 and higher) | 2 | // (available in chuck-1.4.1.0 and later) |
| 3 | // desc: example showing .apropos(), which can be invoked on | 3 | // desc: example showing .apropos(), which can be invoked on |
| 4 | // any object or class; .apropos() dynamically generates | 4 | // any object or class; .apropos() dynamically generates |
| 5 | // information regarding the underlying type of an object | 5 | // information regarding the underlying type of an object |
| @@ -7,8 +7,10 @@ · 1 unmodified line | |||
| 7 | // the information includes the inheritance chain of the | 7 | // the information includes the inheritance chain of the |
| 8 | // type in question, its functions as well as functions | 8 | // type in question, its functions as well as functions |
| 9 | // inherited from its parent (and its parent's parent, and | 9 | // inherited from its parent (and its parent's parent, and |
| 10 | // so on). .apropos can be a helpful on-the-fly learning | 10 | // so on). |
| 11 | // tool. | 11 | // |
| 12 | // .apropos() is designed to be a run-time teaching/learning tool | ||
| 13 | // and a quick referencewhile programming. It's fun, sort of! | ||
| 12 | 14 | ||
| 13 | // an object/ugen instance | 15 | // an object/ugen instance |
| 14 | SinOsc osc; | 16 | SinOsc osc; |