[Self-interest] Hiding object internals

Jiri R. jiriq at icloud.com
Mon Jul 5 20:14:06 UTC 2021


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20210705/d1c01c1a/attachment.html>


More information about the Self-interest mailing list