lua-users home
lua-l archive

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

Here's a subtlety regard method currying: Does obj:method == obj:method -- i.e., do the results of currying get cached? I'm inclined to say no because it would considerably complicate the implementation, but then I wonder about how to enable it for cases where it's needed. Here is a use case for caching:

	observed:addObserver( observer:callback )
	... later ...
	observed:removeObserver( observer:callback )