Created
March 2, 2013 17:10
-
-
Save haio/5072015 to your computer and use it in GitHub Desktop.
Lua variable types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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