From: Ilias Lazaridis Date: 2005-04-04T02:24:43+09:00 Subject: Re: [EVALUATION] - E03 - jamLang Evaluation Case Applied to Ruby Csaba Henk wrote: > On 2005-04-03, Ilias Lazaridis wrote: [...] >>but it gives me the basic idea: >> >>class Object >> def meta() @meta ||= {} end >>end >> >>talker.sayYourName.meta[:author] = "it's just me" >>puts talker.sayYourName.meta[:author] >>=> it's just me > > If you want metadata for the _function_, then it's not exactly the way > to go. > > The sayYourName method, as defined above, is a side-effecting one, > writes out @name, then returns nil, which is a unique object, without > any reference to talker. That is, it's not a possible carrier of > metainformation. [...] after the other message and some more tests I understood you objections and suggestion. I sincerly apologize for rejecting them without further and deeper evaluating them, trusting a little bit your experience. I will continue tomorrow, as I've a blackout now. .. -- http://lazaridis.com