Hi, 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. I javascript is done this way: decorate.message_to_delegate.apply(this,params);
Thanks! Hernan.
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?
I’m not really familiar with javascript decorators or what their use is. What are you trying to achieve?
Russell
On 4 Jul 2021, at 7:10 am, Hernan Wilkinson hernan.wilkinson@10pines.com wrote:
Hi, 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. I javascript is done this way: decorate.message_to_delegate.apply(this,params);
Thanks! Hernan.
-- https://10pines.com/ Hernán Wilkinson Software Developer, Teacher & Coach
Alem 896, Floor 6, Buenos Aires, Argentina +54 11 6091 3125 @HernanWilkinson _______________________________________________ Self-interest mailing list Self-interest@lists.selflanguage.org http://lists.selflanguage.org/mailman/listinfo/self-interest
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@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?
I’m not really familiar with javascript decorators or what their use is. What are you trying to achieve?
Russell
On 4 Jul 2021, at 7:10 am, Hernan Wilkinson <hernan.wilkinson@10pines.com mailto:hernan.wilkinson@10pines.com> wrote:
Hi, 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. I javascript is done this way: decorate.message_to_delegate.apply(this,params);
Thanks! Hernan.
-- https://10pines.com/ Hernán Wilkinson Software Developer, Teacher & Coach
Alem 896, Floor 6, Buenos Aires, Argentina +54 11 6091 3125 @HernanWilkinson _______________________________________________ Self-interest mailing list Self-interest@lists.selflanguage.org mailto:Self-interest@lists.selflanguage.org http://lists.selflanguage.org/mailman/listinfo/self-interest
Self-interest mailing list Self-interest@lists.selflanguage.org http://lists.selflanguage.org/mailman/listinfo/self-interest
Yeah! it was resend.msg what I was looking for.
Thanks David!
On Sun, Jul 4, 2021 at 2:59 PM David Ungar ungar@mac.com wrote:
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@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?
I’m not really familiar with javascript decorators or what their use is. What are you trying to achieve?
Russell
On 4 Jul 2021, at 7:10 am, Hernan Wilkinson hernan.wilkinson@10pines.com wrote:
Hi, 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. I javascript is done this way: decorate.message_to_delegate.apply(this,params);
Thanks! Hernan.
-- https://10pines.com/Hernán WilkinsonSoftware Developer, Teacher & Coach Alem 896, Floor 6, Buenos Aires, Argentina +54 11 6091 3125 @HernanWilkinson _______________________________________________ Self-interest mailing list Self-interest@lists.selflanguage.org http://lists.selflanguage.org/mailman/listinfo/self-interest
Self-interest mailing list Self-interest@lists.selflanguage.org http://lists.selflanguage.org/mailman/listinfo/self-interest
My pleasure!
- David
On Jul 4, 2021, at 12:12 PM, Hernan Wilkinson hernan.wilkinson@10pines.com wrote:
Yeah! it was resend.msg what I was looking for.
Thanks David!
On Sun, Jul 4, 2021 at 2:59 PM David Ungar ungar@mac.com wrote:
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@russell-allen.com wrote:
Its =E2=80=98receive parent.msg'
Ie, for an object
x =3D (| parent1* =3D (| a =3D 2 |). parent2* =3D (| a =3D 3 |) |)
=E2=80=98x a=E2=80=99 give you an error.
=E2=80=98x parent1.a=E2=80=99 gives 2 =E2=80=98x parent2.a=E2=80=99 gives 3
Is that what you were asking?
I=E2=80=99m not really familiar with javascript decorators or what their =
use is.
What are you trying to achieve?
Russell
On 4 Jul 2021, at 7:10 am, Hernan Wilkinson <hernan.wilkinson@10pines.com=
wrote:
Hi, 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 whic=
h
one... It is very useful when implementing a Decorator on a parent. I javascript is done this way: decorate.message_to_delegate.apply(this,params);
Thanks! Hernan.
-- https://10pines.com/Hern=C3=A1n WilkinsonSoftware Developer, Teacher & =
Coach
Alem 896, Floor 6, Buenos Aires, Argentina +54 11 6091 3125 @HernanWilkinson _______________________________________________ Self-interest mailing list Self-interest@lists.selflanguage.org http://lists.selflanguage.org/mailman/listinfo/self-interest
Self-interest mailing list Self-interest@lists.selflanguage.org http://lists.selflanguage.org/mailman/listinfo/self-interest
--=20 https://10pines.com/Hern=C3=A1n WilkinsonSoftware Developer, Teacher & Co= ach
Alem 896, Floor 6, Buenos Aires, Argentina
+54 11 6091 3125
@HernanWilkinson
self-interest@lists.selflanguage.org