From: Keith Rarick Date: 2007-09-05T07:15:06+09:00 Subject: Re: python-style decorators On 9/4/07, Charles Oliver Nutter wrote: > Depending on how you've implemented it, the declarative style is not > thread-safe. You're right; it is not. But that doesn't bother me too much. Shared-state concurrency is usually a bad idea. Then again, ideally this library would be correct under all circumstances including multiple threads. The real problem is that ruby provides no way to intercept method definitions as they occur. The best you can do is notice that they happen after the fact. The best interface would be an add_method method that one could override. The interpreter has an add_method function in C, but it's not exposed to ruby code. kr