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
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to