Ok! So I have been trying Lua for 2 days now I don’t understand something! In the Lua interpreter the following code doesn’t work . Why Not?
\>function accept() print "Hello" end \>accept() Hello \>accept( \>\>) Hello \>accept \>\>() stdin:2: ambiguous syntax (function call x new statement '(' )
Also I have one more problem!
Why is this happening?
\>print (2) 2 \>print 2 error!! \>print ("Hello World") Hello World \>print "Hello" Hello \>print (a) nil \>print a error!