On 11/14/07, jamie@postlude.co.uk jamie@postlude.co.uk wrote:
I also forgot to mention that if you don't have a float method implemented and this is used, that it will crash PD. I tried this out last night.
I can't reproduce that. using class_addfloat() to add an undefined method results in a compiler error, and omitting class_addfloat() results in Pd giving a "no method for 'float'" error to the Pd console. Using class_addanything() circumvents this by providing a catch-all handler.
What I meant was it crashes when you have no float method defined at all. And I thought that the 'anything' would catch it too, but it didn't on my machine, it crashed. Maybe it is just my machine, or system.
What system are you using?
Mike