Re: Access From Inside Modules
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Access From Inside Modules
- From: Stefan Brantschen <sbr@...>
- Date: 2006年7月24日 20:05:02 +0200
Jerome -
On 24 Jul 2006, at 16:42, Jerome Vuarand wrote:
module("foo", package.see{"base", "string", "table"})
You would just have to define that "see" function, it shouldn't be
complicated.
Hmm. Maybe I am missing your point, but: if there _were_ a table
"base" with all the basic functions, as your proposal seems to imply,
I'd simply write
local table = require "table"
local string = require "string"
local base = require "base"
and refer to ipairs using 'base.ipairs()'.
Do I miss anything?
Best
- Stefan