Re: package.searchpath
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: package.searchpath
- From: steve donovan <steve.j.donovan@...>
- Date: 2010年11月29日 08:22:15 +0200
On Sun, Nov 28, 2010 at 3:23 PM, Gavin Wraith <gavin@wra1th.plus.com> wrote:
> of objects in the directory represent the keys. Filetypes can be
> defined for types of value - textfiletype for strings, for example.
> The analogy cannot be pushed too far, but it is good food for thought.
> Metatables for files, anybody? :)-
Especially if it were a 'lazy tree' - so that e.g. dirtree.usr.local
is only populated when accessed.
(This is where custom ipairs can be useful.)
Particularly cool hacks possible with pseudo-filesystems like /proc on
(some) Unixes.
steve d.