[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: modules
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 4 Jun 2013 13:26:35 -0300
> I do not understand the code in PIL 3rd in Listing 15.2 (page 158) "Module with export list".
> It starts:
>
> local function new (r,i) return {r=r, i=i} end
> -- defines constant 'i'
> local i = complex.new(0,1)
There is a typo there. See the errata at http://www.lua.org/pil/errata.html .