marcoonroad / families

Concatenation-based prototypes implementation for Lua. :microscope: :crescent_moon: :family_man_woman_girl_boy: :house_with_garden:
https://marcoonroad.github.io/families/
MIT License
3 stars 0 forks source link

Prototype mutation overrides existing children's properties. #3

Closed marcoonroad closed 7 years ago

marcoonroad commented 7 years ago

After cloning, the passed structure (where the clone differs from prototype) must have greater precedence on lookup rules. I mean, it should "override" any existing property/selector from prototype. But in this library the inverse happens. IHMO, this is a quite awful and unsound bug on the implementation for concatenative OOP.

marcoonroad commented 7 years ago

closed by commit 15cb720