[PD-dev] [ pure-data-Patches-3606334 ] empty lists to [pack] should trigger object

SourceForge.net noreply at sourceforge.net
Thu Feb 28 10:52:54 CET 2013


Patches item #3606334, was opened at 2013-02-28 01:52
Message generated for change (Tracker Item Submitted) made by zmoelnig
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3606334&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: bugfix
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: IOhannes m zmölnig (zmoelnig)
Assigned to: Miller Puckette (millerpuckette)
Summary: empty lists to [pack] should trigger object

Initial Comment:
"[list 1 2 3( -> [pack 10 20 30 40]" will overwrite the first 3 elements ot [pack] and then trigger the output of the packed list.

but sending an empty list, e.g. "[list( -> [pack 10 20 30 49]", will be silently ignored.
the expected bahaviour is that no elements of [pack] are replaced and that the packed list is sent to the outlet.

the attached patch fixes this, by only calling obj_list() is the list is non-empty (obj_list() will immediately return if it gets an empty list) and instead call pack_bang() in this case.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3606334&group_id=55736



More information about the Pd-dev mailing list