lua-users home
lua-l archive

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


Andrew Starks <andrew.starks <at> trms.com> writes:

> simplifies this process and will properly install the documentation, as 
well.
> Also, other libraries that need installation are more involved than 
Penlight. 
> >
> > Let me know if I can help further!
> >
> > -Andrew 
> >
> This is the answer 'C:/lua/?/init.lua' it is convoluted.
> 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.
> Thanks for your help.
> Andre
> 
> It looks tricky, but it is a somewhat standard pattern amongst languages, 
other than Lua. Also, it is well documented, but perhaps finding if was a 
bit difficult? Here are some links: 
> 
> The reference guide, which is a dry explanation of the language. Think of 
it as helpful, mostly for if you know your way around Lua. It is much like a 
specification, but again, it's helpful. :)
> 
>  http://www.lua.org/manual/5.2/
> 
> 
> The package library and the explanation on searchers is in section 6.3. 
> 
> 
> Next up, Programming in Lua, 3rd Edition, is the finest resource on Lua. 
It is a must have, if you plan on learning it completely. It's also a 
favorite of mine, in terms of being truly an enjoyable book to learn from:
> 
> 
> http://store.feistyduck.com/products/programming-in-lua
> 
> 
> As it so happens, Fabio Mascarenhas, who is an experienced contributor to 
this list, published his lecture materials from a course that he taught:
> 
> 
> 
> http://www.lua.org/start.html#learning
> 
> 
> There are more links that others might recommend. 
> 
> Please let us know if there is something in particular that you are 
looking for. Due to the unusually wide variety of ways in which Lua is used, 
some information on the language might seem a bit scattered. 
> 
> 
> Thanks!
> 
> -Andrew
> 
> 

No the problem is that you have to change your lua_path to use
require 'pl'

This should be documented.

I have over 100,000 lines if lua code I am maintaining so yes I understand 
packages.

I just downloaded penlight to see how he replace module since 5.3 will not 
support it. 
I am not that interested in that library in any other ways.
Try to run it and found that lfs is not compatible with version 5.2.
So I fix the lfs.dll for version 5.2 and thing started to work.
I try run.lua and got hit by the pl not resolved.
Look in the documentation where the change to lua_path should have been 
documented but it is not ...

Thanks for your help.

Andre