James Edward Gray II wrote: > On Mar 31, 2005, at 3:44 AM, Ilias Lazaridis wrote: > >>>> Is there a standard way to apply metadata/annotations to my class >>>> Talker, its Methods, its Attributes? [...] >> I extract: Ruby has not standard-mechanism for metadata/annotations. >> >> ok > > Correct, but it certainly provides ample tools to build whatever you need. > > This aspect you've just hit on is the very essence of programming, in my > opinion. No language provides everything for every need. The processes > of adapting your chosen language to the problem space is the craft. I'm just writing the situation down. personally to me, language-efficiency is more important than a standartization [which can btw. limit efficiency, see JAVA]. >> Where can I find the implementation of "attr_accessor"? >> >> I'm intrested in seeing how much effort it is to write an own >> "flex_attr_accessor". > > I'm sure attr_accessor is defined in the Ruby source. ok > Here's my version of a pure Ruby class accessor: > > irb(main):015:0> class Module > irb(main):016:1> def cattr_accessor( *symbols ) [...] > Hope that helps. yes, very nice! looks like a "macro", written in ruby, made available to a project by simply including the file. very nice! > James Edward Gray II .. -- http://lazaridis.com