Hi,

what is the best way to access variables from within a metalink?

for example I have a message send `surface clear` and I want to change it to 
`surface clear: trachelCanvas color`.

I can use #instVarNamed:

```
MetaLink new
        metaObject: [ :object |
                (object instVarNamed: #surface) clear: (object instVarNamed: 
#trachelCanvas) color.
        ];
        selector: #value:;
        arguments: #(object);
        control: #instead.
```

but the above isn't exactly nice, plus it wouldn't work with temporary 
variables.

Thanks,
Peter

Reply via email to