Morphered functions are executed later then defined
Morphered functions are executed later when we are sure that we encountered new
morphered function or if we encounter end of file as it seems to me. This is
against documentation as it states that if you call Script
it is executed first
and then parent script continues to execute. But now it isn't executed as it's
defined but some time later. This can cause weird bugs such as this:
t = true
Script "test" "file:///test"
t = false
In this case when script "test" is executed variable t
is set to false
.
It's possible to see it clearly this way:
Script "talker" "file:///hello_world.lua"
WARN("You too")
In this case we would see You too
before output from talker
.