thomaslee/chimp — pull request #7 by jasonrclark (2012-12-27 05:25:46+00:00)
Title: Basic implementation of the self() method

Per your email, I implemented self as just a built-in method. As expected, that was quite a bit simpler than a keyword would have needed to be, and at this stage of things that definitely seems like a good approach.

I've also added a little helper macro to make that cleaner in the init method, although it still doesn't do much for handling errors that might happen during startup.

One thing I did notice was that we're prevented from calling self().send("blah") with this error:

bug: task.c:401: cannot send using local task object. aborting ...

Clearly that's intentional, but I was curious why that restriction exists.