Hi,
In message "Re: how to escape variable expansion in a block"
on Mon, 4 Oct 2004 05:33:09 +0900, "Joachim Wuttke" <wuttke1 / web.de> writes:
|It works, but the introduction of the auxiliary
|variable his„” is not very elegant. Is there another
|way to tell the TkButton constructor that uttonPressed„”
|is a member of the class it was called from ?
Currently, there's no way to avoid. If TkObject had parent attribute,
it could be:
| TkButton.new( frame ) {
| text 'press here'
| command proc { parent.buttonPressed }
| }
Just a possibility.
matz.