From: dblack@... Date: 2006-01-09T12:03:06+09:00 Subject: Re: Ideas on "Why Living Dangerous can be A Good Thing" in Ruby? Hi -- On Mon, 9 Jan 2006, Gregory Brown wrote: > On 1/8/06, James Britt wrote: > >> Is memoization metaprogramming, or is it only metaprogramming when >> behavior is altered? > > I'm a lot more liberal (and maybe naive) in my definition of metaprogramming. > I think that creating dynamic behavior at runtime is indeed > metaprogramming, even if it hasn't altered the underlying behavior of > the class itself. > > Whenever I sere something to the effect of in the > code, I'm thinking that I'm writing a method that is using some sort > of meta programming. > > If i'm not accessing methods or fields I defined before the program > began, and I'm getting some sort of behavior that the program > assembled at runtime, I consider that meta programming, regardless of > changes or lack thereof to underlying state / behavior. > > What do others think about this? Interestingly, is, in a sense, what yielding implies. David -- David A. Black dblack@wobblini.net "Ruby for Rails", from Manning Publications, coming April 2006! http://www.manning.com/books/black