Io.print error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Io.print error

Hugo <Nabble>
This code works:
local Io = require "luan:Io"
Io.print '/'
But this one doesn't:
local Io = require "luan:Io"
local path = '/'
Io.print path
Why?
Reply | Threaded
Open this post in threaded view
|

Re: Io.print error

Hugo <Nabble>
If we add parentesis then it works:
local Io = require "luan:Io"
local path = '/'
Io.print(path)
Reply | Threaded
Open this post in threaded view
|

Re: Io.print error

fschmidt
Administrator
In reply to this post by Hugo <Nabble>
This is Lua syntax.

http://www.lua.org/manual/5.3/manual.html#3.4.10
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Io.print error

Hugo <Nabble>
Okay, I see how it works now. Closing thread.