lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mike Schmitz wrote:
> Maybe I am missing something, but can't this be done w/the existing
> require?  Like this: 
> 
> syslog = require("syslog")
> syslog.location = "http://localsite/";
> syslog.param = {"whatever"}

No, syslog.lua doesn't exist on the local computer, the url is not a
parameter of the module itself but of the loader of the module. In my
example I used a ficionnal module that modify loader table to add one
that gets modules from the network.