On 10/4/05, Mathieu Bouchard <matju / artengine.ca> wrote: > On Tue, 4 Oct 2005, TRANS wrote: > > > I'm writing an method-annotations system and since methods aren't first > > class objects, Symbol seemed like the best place to put them. > > Why? I'd rather put those things in the class that the method belongs to. > Make a hashtable per class, e.g. > > class Module;attr_accessor :doc;end > Fixnum.doc||={} > Fixnum.doc[:+] = "addition" Right. That works well. It's just that methods are generally referred to by the symbol, like with method_missing and all. So it seemed reasonable. (I had original created a FirstClassMethod manager module, but decided it was too heavy, so Symbol sort of took it's place.) But you're right. This is better. Thanks, T.