Posted by: leppie | August 16, 2007

Closures hooray!

After overlooking (rather by not understanding) a part of the DLR, I have managed to implement closures properly. It simply involves wrapping a delegate in a ‘FastCallable’ object. This way, it becomes an easily managable 1st class object. The DLR takes care of all the plumbing setting up variables outside the local scope. Pretty neat 🙂

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: