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

Re: [sc-users] Pseudo-method question



Am 26.12.2016 um 22:36 schrieb kflak <kennethflak@xxxxxxxxx>:

> Thanks a lot to both of you. Eirik, I still need to wrap my head around how
> IdentityDictionaries work, but you have pointed me in the good direction.
> Michael, thanks for the slightly hacky version. I like it, but don't get why
> it is like that. I would be very happy for some further clarification on
> this...

As we have an Event here, { { ... } } is evaluated immediately (pseudo-method),
the result is the Function { ... } and applying 'value' delivers the "usual" (non-pseudo-method-) behaviour

See also

http://doc.sccode.org/Classes/Environment.html#Using%20Environments%20as%20object%20prototypes


Regards

Daniel

-----------------------------
www.daniel-mayer.at
-----------------------------


_______________________________________________
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/