[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Private modules, was Calling module from a C function
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Fri, 27 Apr 2007 13:49:16 -0400
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.