Filed on: 2025-02-12T06:00:00Z→2025-02-12T06:00:00Z
Steps to Repo
- Section 4.2 of online manual has code that does not give output it says it will.
- I'm on a Mac PB M1
- I put the appropriate code in each file main.lua, a.lua, and b.lua. I then run the code and instead of getting the output shown in 4.2 I get the following:
Console output:
hello b.lua:3: attempt to concatenate a nil value stack traceback: b.lua:3: in main chunk
a.lua
return "hello"
b.lua
print("b says " .. import "a" or "nil")
main.lua
print(import "a" or "nil") import "b"
That error is not what section 4.2 says the output will be.