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

Concatenative semantics are broken with nil values. #1

Closed marcoonroad closed 7 years ago

marcoonroad commented 7 years ago

The addition of new fields on prototype-side are propagated into children due the current lookup semantics/rules.

Hence, it's needed to change the __index metamethod to take into account if the current selector is updated on clone-side. If it is indeed updated, even being nil, no further lookups on prototype-side could be performed.

marcoonroad commented 7 years ago

closed by commit 7af33d9