From: "David A. Black" Date: 2003-12-10T03:46:14+09:00 Subject: Re: Adjusting the Scope of Blocks Hi -- On Wed, 10 Dec 2003, Robert Klemme wrote: > > "David A. Black" schrieb im Newsbeitrag > news:Pine.LNX.4.44.0312090906230.13718-100000@wobblini.net... > > Actually I feel that "self.instance_eval" should be > > a no-op, since what it conveys (absent the magic) is: execute what > > follows, setting self to what it already is. > > Not exactly, it overrides any setting of self in the environment that > cometh with the block / closure. IOW, the closure's env is modified for > this call so that "self" points to the invoking "self" and not the "self" > at the time of definition. So it is not really a noop. I know it isn't. I said I feel that it (self.instance_eval) *should be* a no-op. Still mulling over Guy's class_eval thing... :-) David -- David A. Black dblack@wobblini.net