From: Robert Klemme Date: 2004-10-04T21:10:00+09:00 Subject: Re: how to escape variable expansion in a block "Yukihiro Matsumoto" schrieb im Newsbeitrag news:1096891101.544558.17650.nullmailer@x31.priv.netlab.jp... > Hi, > > In message "Re: how to escape variable expansion in a block" > on Mon, 4 Oct 2004 19:39:53 +0900, "Robert Klemme" writes: > > |What about > | > | TkButton.new( frame ) { > | text 'press here' > | command proc { self.buttonPressed } > | } > | > |? > > TkObject initializers swaps self during the execution of the blocks > attached to them, to enable attribution call such as "text" or > "command". If you want to allow self unchanged, we should seek > another model of execution, that might breaks code compatibility. Ah, ok! Now it's clear why the additional var "this" was mentioned. Sorry for the noise. Kind regards robert