> The problem is that the toString() operation called on an object of
> type Function returns the literal string source of the function.

Unless we redefine it (which is what the previous example is about)

> I'm not sure that I see where checking the type is limiting - if it is
> a function, apply it with the current object; if it is not send it
> through the usual interpretation.

I guess it's just a matter of taste : )

Cheers,
kangax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to