-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2015-02-24 18:52, Alexandre Torres Porres wrote:
"I think that even in the case of an external, it's difficult to know whether there's a signal connected to a signal inlet, or not (...) I think Eric Lyon's externals do what you want"
I guess it can be tricky, but not impossible.
i think you are asking the wrong question here: you are not at all interested in whether an object has a signal connected or not, but only whether you can provide a "default signal".
while the former might be tricky, the latter might not be.
otoh, i'm not entirely sure whether you "should" really want what you are asking for. in a "max compat" sense it might make sense, but it's not very Pd'ish: all of Pd's binops (e.g. [+~]) take an optional argument, and the type of the second inlet depends on the existance of this argument (if there is no argument, you get a signal inlet, if there is an argument you get a message inlet).
finally: i haven't looked at your abstraction, but i guess the problem you are facing is to distinguish between no argument and the default "0" argument. it's possible to do this as a vanilla abstraction. check the list archives for examples.
fgmasdr IOhannes
PS: as far as zexy is concerned, i will keep it as Pdish as possible.