Feature Requests item #1798795, was opened at 2007-09-20 16:32 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478073&aid=1798795...
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: None Status: Open Priority: 5 Private: No Submitted By: Frank Barknecht (fbar) Assigned to: Nobody/Anonymous (nobody) Summary: Allow reading [bag]'s content without reset
Initial Comment: Suggestion: I think it could be useful to add a method to the core-object [bag] which allows one to take a peek into the current content of a [bag] without destroying that content at the same time. Kind of like the existing "flush" method, but without the "clear"-part. I'd propose to just use the "bang" method for this.
This could make [bag] more useable as a general purpose container, whereas now it's like an "all-or-nothing" bag: While you can add to and remove from the bag, you can only take a peek at what's currently inside the bag by emptying it.
A non-destrictive peek method would be especially useful to construct some of the monophonic voice allocation algorithms.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478073&aid=1798795...