Hello!
Assume an object:
(| parent1* = (| a = 11. b=22 |). parent2* = (| a = 22. b=33 |). a = 1 |)
Sending 'a', gives '1' as expected:-) Sending 'b' gives an error: "More then one 'b' slot was found .."
What if I need the parents to hide some of their inner structure to not mismatch with other objects? Click-on-a-slot / Make-private seems to be only cosmetic/annotation thing.
Regards, Jiri
Jiri, not sure exactly what you want, but how about
(| parent1* = (| a = 11. b=22 |). parent2* = (| a = 22. secretInnerSelf = (| b=33 |) |). a = 1 |)
The above would fit your stated requirement of having parent2 hold some secret inner structure. Does this solve your “mismatching” problem?
--Randy
From: Self-interest self-interest-bounces@lists.selflanguage.org on behalf of "Jiri R." jiriq@icloud.com Date: Monday, July 5, 2021 at 1:14 PM To: "self-interest@lists.selflanguage.org" self-interest@lists.selflanguage.org Subject: [Self-interest] Hiding object internals
Hello!
Assume an object:
(| parent1* = (| a = 11. b=22 |). parent2* = (| a = 22. b=33 |). a = 1 |)
Sending 'a', gives '1' as expected:-) Sending 'b' gives an error: "More then one 'b' slot was found .."
What if I need the parents to hide some of their inner structure to not mismatch with other objects? Click-on-a-slot / Make-private seems to be only cosmetic/annotation thing.
Regards, Jiri
self-interest@lists.selflanguage.org