lua-users home
lua-l archive

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


On May 14, 2013, at 11:26 PM, Steve Litt wrote:

> On Tue, 14 May 2013 21:10:57 -0400
> Steve Litt <slitt@troubleshooters.com> wrote:
> 
>> On Wed, 15 May 2013 00:49:26 +0200
>> koba@cioccolatai.it wrote:
> 
>>> You can download all the editions you want (done myself right now).
>>> Like other digital publishing system, the pdf contains your
>>> name/email at the bottom of the page, c&p is allowed (still haven't
>>> tried the .mobi).
>> 
>> 
>> Confirmed! It took my Paypal account so it was easy and painless. For
>> 15 British pounds I got all three formats. This makes Lua a much
>> better resource.
>> 
>> Thanks,
>> 
>> SteveT
>> 
>> Steve Litt                *  http://www.troubleshooters.com/
>> Troubleshooting Training  *  Human Performance
> 
> Serious bummer. When you copy from the PDF version and paste into a
> text file, the result is gibberish characters. Below my sig is an
> example, the copy and paste of the Fibbonacci program Given that the
> book's first exercise is "run the fibbonacci program", which is printed
> in the chapter, this is just plain bad.
> 
> To make it worse, I found no way to wget the online version, which says
> it will be online for the next year, but sometimes I like to do this
> stuff while disconnected from the Internet.
> 
> Is there a chance of updating this eBook so that it can be copied and
> pasted to a plain text file?
> 
> Thanks,
> 
> SteveT
> 
> Steve Litt                *  http://www.troubleshooters.com/
> Troubleshooting Training  *  Human Performance
> 
> ✲✲ ❞❡❢✐♥❡s ❛ ❢❛❝t♦r✐❛❧ ❢✉♥❝t✐♦♥
> ❢✉♥❝t✐♦♥ ❢❛❝t ✭♥✮
> ✐❢ ♥ ❂❂ ✵ t❤❡♥
> r❡t✉r♥ ✶
> ❡❧s❡
> r❡t✉r♥ ♥ ✯ ❢❛❝t✭♥✲✶✮
> ❡♥❞
> ❡♥❞
> ♣r✐♥t✭✧❡♥t❡r ❛ ♥✉♠❜❡r✿✧✮
> ❛ ❂ ✐♦✳r❡❛❞✭✧✯♥✧✮
> ✲✲ r❡❛❞s ❛ ♥✉♠❜❡r
> ♣r✐♥t✭❢❛❝t✭❛✮✮
> 


I do not see this problem with my copy. Could it be an issue with the PDF viewer used? I am using Preview in OSX 10.7. I have tried several examples in the book with no issues.

 
-- defines a factorial function
     function fact (n)

  if n == 0 then
    return 1

  else
    return n * fact(n-1)

end end

print("enter a number:")
a = io.read("*n")
print(fact(a))


-djd

 
-- 
Douglas Davenport