[GOODIE] Delegation and Self like things for Squeak

Bob Arning arning at charm.net
Wed Aug 22 11:25:10 UTC 2001


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