[GOODIE] Delegation and Self like things for Squeak
Stephen Pair
spair at advantive.com
Wed Aug 22 12:00:26 UTC 2001
Ha! I never realized that would work!...I just assumed the primitive
would fail. The caller might not appreciate what you've done to their
stack though.
- Stephen
> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On
> Behalf Of Bob Arning
> Sent: Wednesday, August 22, 2001 7:25 AM
> To: rwithers12 at mediaone.net; squeak-dev at lists.squeakfoundation.org
> Subject: Re: [GOODIE] Delegation and Self like things for Squeak
>
>
> On Wed, 22 Aug 2001 03:39:54 -0400 "Rob Withers"
> <rwithers12 at mediaone.net> wrote:
> >Is there a way to invoke a primitive against a different
> receiver, in
> >Squeak? For example, In a doIt, invoke <primitive: 1> and
> supply the 2
> >numbers - one the receiver and the other the argument.
>
> Well, (he says while taking cover under his desk) you could
> just define
>
> Object>>primitive1ForAnyObject: as
>
> primitive1ForAnyObject: arg
>
> <primitive: 1>
>
> Cheers,
> Bob
>
>
More information about the Squeak-dev
mailing list
|