On Thu, 2008-03-13 at 17:40 +0100, Matteo Sisti Sette wrote:
Roman Haefeli wrote:
Some people may miss [s2l] in vanilla Pd, others miss a [pipe] for variable length lists or a multi-period [metro],
those can all be done with built-in objects already, as far as i can see (with more or less effort, though).
I can't see how you could implement a [pipe] for variable-length lists with built-in objects, no matter how much effort you put in it (with acceptable memory/cpu costs).
not that i've already done it, but i can imagine that it is possible. the idea is to give each incoming list an ID and send only the ID to the [pipe], where the list itself is stored in some [meta-list]. after receiving the ID from [pipe], you could use it to look up the list in [meta-list]. of course you also need to delete the list from [meta-list] then.
probably the most effort is needed to create [meta-list]. though i haven't any easily understandable example at hand, i've used such approaches in many occasions. as an example of how multiple lists can be packed in one list, have a look at [list-fifo] from franks list-abs.
roman
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de