Skip to content

Instantly share code, notes, and snippets.

@haio
Created March 2, 2013 17:10
Show Gist options
  • Save haio/5072015 to your computer and use it in GitHub Desktop.
Save haio/5072015 to your computer and use it in GitHub Desktop.
Lua variable types
nil
boolean --false 和 nil为假,其余为真
number --lua 中没有整数
string --字符串值不可修改 "10" + 1 == 11
--"hello" + 1 ERROR
--"hello" + "world" ERROR
--"i want" .. 10
function
userdata
thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment