[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Pseudo-method question



Wrapping the function in an extra pair of curly braces does what you want. Forgot why this was necessary again. Someone else can probably tell you.


m = (); 
m.dlt = {{arg data = ""  // wrap inside extra pair of {}
m.dlt.value([1,2,3]); 


Van: owner-sc-users@xxxxxxxxxxxxxxxx <owner-sc-users@xxxxxxxxxxxxxxxx> namens kflak <kennethflak@xxxxxxxxx>
Verzonden: maandag 26 december 2016 19:56:13
Aan: sc-users@xxxxxxxxxxxxxxxx
Onderwerp: [sc-users] Pseudo-method question
 
Hi list,

Why does this work:

x = {arg data = "" data.postln};
x.value([1,2,3]);

and this not:

m = ();
m.dlt = {arg data = ""
m.dlt.value([1,2,3]);

?

K



--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Pseudo-method-question-tp7629746.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/