[Seaside] Object References (Smaltalk)

Igor Stasenko siguctua at gmail.com
Mon Oct 26 07:36:41 UTC 2009


2009/10/25 Robert Sirois <watchlala at hotmail.com>:
> Is there a way to get a reference to a calling object from the object that
> is being called?
>
> For example in WACounter if you wanted a reference to whatever was calling
> #increase you could use something like #'self caller' to do that?
>
why not just pass it as an extra argument?

counter increaseRequestFrom: something.

-----
WACounter>>increaseRequestFrom: something

  something doSomething orDoNothing.
  self increase.

----

> RS
>
> ________________________________
> New Windows 7: Find the right PC for you. Learn more.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the seaside mailing list