Squirrel

The programming language
Welcome to Squirrel Sign in | Join | Help
in Search

Call base class metamethod from metamethod

Last post 11-25-2009, 11:42 AM by zimans. 0 replies.
Sort Posts: Previous Next
  •  11-25-2009, 11:42 AM 3582

    Call base class metamethod from metamethod

    Is there a way to overload metamethods in a derived class? I'm working on a UI project where all UI elements inherit from a base Widget class that is implemented natively. I would like to be able to use metamethods for set/get type functionality for properties, but still call the base class so it can handle properties as well for those that the derived class does not.

    --Z
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems