[PD] Vanilla [list-s2l] prototype
Mathieu Bouchard
matju at artengine.ca
Fri Nov 20 16:59:44 CET 2009
On Fri, 20 Nov 2009, Mathieu Bouchard wrote:
>> [foreach] sounds good - but i could not find it ... give me a hint, please.
> It's part of GridFlow.
Actually, the code could be shorter and support A_POINTER too.
That's what it does now:
\class ForEach : FObject {
\constructor () {}
\decl 0 list (...);
};
\def 0 list (...) {
for (int i=0; i<argc; i++) outlet_atom(outlets[0],&argv[i]);
}
\end class {install("foreach",1,1);}
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
More information about the Pd-list
mailing list