Section 4.2 of online manual has code that does not give output it says it will, instead it gives an error about concatenating a nil value.
II'm on a Mac PB M1
Filed on: 2025-02-12T06:00:00Z→2025-02-12T06:00:00Z
Steps to Reproduce
- 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:
Code Files
a.lua
return "hello"
b.lua
print("b says " .. import "a" or "nil")
main.lua
print(import "a" or "nil") import "b"
Expected Output
hello
b says nil
Output Received
hello b.lua:1: attempt to concatenate a nil value stack traceback: b.lua:1: in main chunk**(playdate)**