[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Penlight library
- From: Andre Arpin <arpin@...>
- Date: Sat, 5 Oct 2013 11:59:29 +0000 (UTC)
steve donovan <steve.j.donovan <at> gmail.com> writes:
>
> On Sat, Oct 5, 2013 at 4:23 AM, Andre Arpin <arpin <at> kingston.net> wrote:
> > I think this should be documented clearly instead of being left to the
reader.
> > It is a trick, clever maybe, but still just a trick.
>
> The usefulness of the trick is that to install Penlight you just need
> to move the pl folder to the correct place (I really should provide an
> install script that does just that). Otherwise, you would have to
> move pl.lua _and_ the pl folder.
>
> The trickery in pl/init.lua comes from the lazy way it loads each
> module, so that it doesn't include every module, only when they are
> referenced.
>
> steve d.
>
>
No the problem is that you have to change your lua_path to use
require 'pl'
This should be documented.
Andre