[Self-interest] How to delegate a message to a parent
ungar at mac.com
Sun Jul 4 17:59:00 UTC 2021
Or, if you don't want to search just one parent, "receiver resend.msg"
> On Jul 3, 2021, at 8:51 PM, Russell Allen <mail at russell-allen.com> wrote:
> Its ‘receive parent.msg'
> Ie, for an object
> x = (| parent1* = (| a = 2 |). parent2* = (| a = 3 |) |)
> ‘x a’ give you an error.
> ‘x parent1.a’ gives 2
> ‘x parent2.a’ gives 3
> Is that what you were asking?
>> On 4 Jul 2021, at 7:10 am, Hernan Wilkinson <hernan.wilkinson at 10pines.com <mailto:hernan.wilkinson at 10pines.com>> wrote:
>> how is the syntax to delegate a message to a parent so when doing so the "self" is not lost?
>> I remember there is a special syntax for that but I do not remember which one...
>> It is very useful when implementing a Decorator on a parent.
>> Hernán Wilkinson
>> Software Developer, Teacher & Coach
>> Alem 896, Floor 6, Buenos Aires, Argentina
>> +54 11 6091 3125
>> Self-interest mailing list
>> Self-interest at lists.selflanguage.org <mailto:Self-interest at lists.selflanguage.org>
> Self-interest mailing list
> Self-interest at lists.selflanguage.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Self-interest