using resend to call 'old' versions of a method

Brian T Rice water at tunes.org
Sun May 4 20:37:08 PDT 2003


On Mon, 5 May 2003, Paul Dufresne wrote:

> Suppose I define:
> _ at 1 + _ at 1 [ 3 ].
>
> Is there a way to use resend to get 2 on:
> 1 + 1
> ?

Definitely!

Slate 1> _ at 1 + _ at 1 [resend].
[+]
Slate 2> 1 + 1.
2

resend is a method defined on activation contexts, so it's an implicit
context send. However, replacing a method defined on {1. 1} as you did
with one that resends will not resend to the method you originally
defined, it will find the next applicable method for the given arguments,
and evaluate to that method's result.

-- 
Brian T. Rice
LOGOS Research and Development
mailto:water at tunes.org
http://tunes.org/~water/



More information about the Slate mailing list