[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: execution order of source files after compilation
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 13 Jul 2015 11:24:01 +0200
2015-07-13 9:19 GMT+02:00 Marc Balmer <marc@msys.ch>:
> I have several Lua source files which I compile to bytecode with a
> single luac call as follows:
>
> $ luac first.lua second.lua third.lua
>
> Now when I execute the output using
>
> $ lua luac.out
>
> is it guaranteed that the order of execution will be the same as on the
> luac command line, i.e. first.lua, then second.lua, then third.lua ?
>
> It seems as it is the case, but I'd like to know if that is by incidence
> only or by design...
A little time spent on perusing luac.c was enough to convince me
that it is by design.