Reputation: 32133
I've got this bit of code here:
local http = require("socket.http")
I know it's supposed to allow me to use some stuff from somewhere else but I have a couple of questions.
Where does it expect to find "socket.http"? What should it expect? A DLL? A Lua script? Both?
Upvotes: 2
Views: 126
Reputation: 72312
require
can load both DLLs and libraries written in Lua. It looks for them using package.path
and package.cpath
, in that order. For details, see the Lua reference manual.
Upvotes: 5