hi Thomas,
unless a message is delayed explicitly via a clock, there is no point in self-messaging, because sending a message in Pd is implemented as an immediate call of a method (there is no message queue).
Another way is to schedule triggering of the sub-methods in a method registered in the dsp chain. This only applies to certain actions of tilde objects -- a nice example is sfplay~ external (from ggee or zexy).
Krzysztof
Thomas Grill wrote: ...
object to an external object, or b) calling clock_new(<init-routine>) and clock_delay(<clock>, 0) in a <class>_new() routine, then clock_free(<clock>) in a <class>_free().
are there another ways of self messaging? In other words, is there a way to send a message from within an external to its own inlet?
Self-retriggering (and dividing longer operations into smaller chunks) would often be helpful and eliminate the need for a second thread.