[PD] Route Bang Bug
IOhannes m zmoelnig
zmoelnig at iem.at
Fri Jun 3 12:36:44 CEST 2005
Zachary Crockett wrote:
> Hey all -- I haven't been on the list for terribly long yet, so
> apologies if we already know about this one... there seems to be a bug
> with [route bang] ... reproducible with the following patch. I'm
> using Pd-0.38-3 on Mac OS X 10.4.1. Incoming bangs just disappear if
> there is a number argument before the bang argument. I get no output
> on the left side of the patch and the expected "d: bang" on the right
> side.
>
hmm, while you discovered clearly a bug, your patch is buggy too.
quoting the pd documentation of [route]:
"Route checks the first element of a message against each of its
arguments, which may be numbers or symbols (but not a mixture of the two.)"
this means that both [route 5 bang] and [route bang 5] are illegal!
however, i believe that pd should complain about illegal creation
arguments for route and it must not swallow the bang in the [route 5
bang] example, but rather send it to the reject outlet.
i have attached a patch (against pd-0.38-4) that will give refuse to
create [route] with illegal arguments and that rejects "bang"
(zero-lengthed lists) when in float-mode.
mfg.a.sdr
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x_connective_route.patch
Type: text/x-patch
Size: 1968 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20050603/f69746eb/attachment.bin>
More information about the Pd-list
mailing list