|
Also, if you haven’t read Programming in Lua, I highly recommend it. It
goes down pretty much every avenue of “cool things you can do in 5 minutes in
Lua”.
One cool example it gives, that demonstrates cool features like lexical
scoping and functions as first class values, is redefining print to work like
printf:
do
local oldprint=print
print=function(...)
oldprint(string.format(...))
end
end
From: Lee Hickey
Sent: Tuesday, February 01, 2011 A3:48
Newsgroups: gmane.comp.lang.lua.general
To: Lua mailing list
Subject: Re: Recommendations on my upcoming Lua
presentation? Also,
Richard Bartle has slides from his whistle-stop intro to Lua for Game courses
online. Might be useful.
Check out lectures 1&2 but some of the other stuff may be useful
too.
-Lee. On 1 February 2011 11:42, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br>
wrote:
|