Al Sweigart
Al Sweigart

Reputation: 12959

Standard way to embed version information into a Lua script?

Python has the __version__ variable as a way for scripts to hold version information. Does Lua have a similar standard?

Upvotes: 1

Views: 214

Answers (2)

pschulz
pschulz

Reputation: 1545

You can use the _VERSION variable:

print(_VERSION) --> lua 5.3

Upvotes: -1

Nicol Bolas
Nicol Bolas

Reputation: 473976

As an embedded scripting language, Lua generally provides mechanisms, not policy. So there aren't standardized ways of doing a lot things in Lua.

Including script versioning.

Upvotes: 2

Related Questions