I have a function defined in inbox.lua:
I am calling DoFile from a separate lua thread like this:
There is no error on the above call and “UpdateInbox:” is written to the debug output as expected.
The problem I am having is that when I do
the function doesn’t seem to be defined. I get
PANIC: unprotected error in call to Lua API ([string "flux/strict.lua"]:30: attempt to index a nil value)
I have verified that both calls are made on the same stack. What am I missing? I am using threads, but AFAIK if the function should be defined if it is declared in a file that is executed on the same stack.