[squeak-dev] Clamato

Avi Bryant avi at dabbledb.com
Sat Sep 5 16:43:15 UTC 2009


On Sat, Sep 5, 2009 at 8:07 AM, Jason Rogers<jacaetevha at gmail.com> wrote:
> A (hopefully) simple question. How would you implement #perform:with:
> ? JS can handle the reflection (either via eval(...) or function
> pointers).

Here's an implementation as a primitive:

- perform: aString with: anObject {
     return this[aString._mangleSelector()](anObject);
}.



More information about the Squeak-dev mailing list