38 lines
381 B
Lua
38 lines
381 B
Lua
print " 1"
|
|
|
|
print (nil)
|
|
print (false)
|
|
print (true)
|
|
print (1993)
|
|
print (1993.00)
|
|
print "Hello."
|
|
|
|
print " 2"
|
|
|
|
local t = {}
|
|
print (t)
|
|
print (t [1])
|
|
t [1] = "asdf"
|
|
print (t [1])
|
|
t.x = 1993
|
|
print (t.x)
|
|
|
|
t.t = { 3.14159 }
|
|
print (t ["t"][1])
|
|
|
|
print " 3"
|
|
|
|
local c = {}
|
|
c [1] = "ddd"
|
|
|
|
local a = { c }
|
|
local b = { c }
|
|
|
|
print (a [1])
|
|
print (b [1])
|
|
|
|
c [2] = "eee"
|
|
|
|
print (a [2])
|
|
print (b [2])
|