Inheritance and foreign classes

41 views
Skip to first unread message

DarkerBit

unread,
Apr 15, 2019, 12:28:56 PM4/15/19
to Wren
In the lifecycle of a class extending a foreign class, when is the foreign class data allocation executed? During the constructor of the foreign class in the constructor hierarchy?

Michel Hermier

unread,
Apr 16, 2019, 3:53:48 AM4/16/19
to wren-lang
Code is executed line by line as a script. Even class creation. Only *immutable* data is created at parsing/compiling time. It contains string, function and a few basic objets. Higher object like list/map/class/etc are evaluated at execution.
Reply all
Reply to author
Forward
0 new messages