-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How are lua's requires working? #13
Comments
EDIT: I must've been tired or something when I wrote this. Cleaned it up a bit. Sorry for the slow response, busy week for me. A module needs to call If you're having any other problems, I'd be happy to help. |
Lua's -- mymodule.lua
local M = {} -- public interface
-- private
local x = 1
local function baz() print 'test' end
function M.foo() print("foo", x) end
function M.bar()
M.foo()
baz()
print "bar"
end
return M We should make sure that these style of modules also work with |
I did design for it, although looking at it, it could be improved. Basically when you return like that, it overrides what's originally returned ( |
I'm working in another project right now, so my NCL/Lua player is kinda inactive. I was trying to run a NCL/Lua sample that uses multiple Lua files (the description is in portuguese). I could not "import" the other files used in the sample. Is it not implemented yet, right? |
Hello,
This project is really great!
I'm using it in WebNCL, a web-based implementation of NCL presentation machine. NCL is a multimedia language and one of its features is support fo Lua scripts.
We'd had great success in using the lua.js in your project so far, but I'm facing a problem with requires. I really don't how they work.
The text was updated successfully, but these errors were encountered: