Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 181. Re: Lua 5.1 reference manual in Vim (score: 27)
- Author: Adrian Perez <moebius.lists@...>
- Date: Sun, 26 Nov 2006 17:13:45 +0100
- Didn't know about this before -- thanks for this nice Vim plugin. I made a Gentoo ebuild for the app-vim category ;-) -- The war between Emacs and Vi is over. Vi has won with 3 to 1. http://www.ssc.c
- 182. Re: Lua 5.1 reference manual in Vim (score: 27)
- Author: lua@...
- Date: Sun, 26 Nov 2006 12:05:55 +0100
- * On 2006-11-26 Luis Carvalho <carvalho@dam.brown.edu> wrote : Great job, thank you very much ! -- ^X^Cy^K^X^C^C^C^C
- 183. Lua 5.1 reference manual in Vim (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Sat, 25 Nov 2006 19:51:35 -0500
- Hi all, luarefvim, the Vim help file for Lua that is based on the reference manual, has been updated to include the Lua 5.1 reference manual. Grab it at: http://www.vim.org/scripts/script.php?script_
- 184. Re: Lua Programming Gems? (score: 18)
- Author: Daniel Silverstone <dsilvers@...>
- Date: Tue, 07 Nov 2006 18:09:37 +0000
- Paypal a donation to Lua.org, for enough to cover a book purchase and re-mailing by the team, plus a bit for their effort. Seems plausible to me :-) D. -- Daniel Silverstone http://www.digital-scurf.
- 185. Re: Lua Programming Gems? (score: 35)
- Author: "Leo Razoumov" <slonik.az@...>
- Date: Tue, 7 Nov 2006 13:07:39 -0500
- One idea would be for the contributors to buy the book to support the Lua team and have it signed by the Lua authors as a "contributor copy". :) For me -- and for all Lua supporters, I guess -- that
- 186. Re: Lua Programming Gems? (score: 18)
- Author: Javier Guerra <javier@...>
- Date: Tue, 07 Nov 2006 18:42:32 +0100
- now *that* is a gem that i would proudly show in my bookcase!
- 187. Re: Lua Programming Gems? (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Tue, 7 Nov 2006 09:40:56 -0500
- One idea would be for the contributors to buy the book to support the Lua team and have it signed by the Lua authors as a "contributor copy". :) For me -- and for all Lua supporters, I guess -- that
- 188. Re: Lua Programming Gems? (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Tue, 7 Nov 2006 07:23:31 -0500
- I'd be interested and happy to contribute. Can you be a little bit more specific as to what a gem is? How big is a gem? What are the intended purposes of a gem? Educative (in the sense of being more
- 189. Re: Lua plot graphic (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Mon, 16 Oct 2006 12:50:39 -0400
- I was planning to release this on the next Numeric Lua version, but, after a few modifications, here it goes: LuaPGPLOT wraps most of the PGPLOT library [1] to be used in Lua; it's a thin layer, tho
- 190. Re: __index return function and first arg (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Thu, 28 Sep 2006 21:59:31 -0400
- <snip> The first argument is being dropped in both cases. The difference is that in jgl.line(2,3,4,5), "2" is being dropped, while in jgl:line(2,3,4,5), which is equivalent to jgl.line(jgl,2,3,4,5) a
- 191. Re: Functional programming (was Re: Default value in function parameters?) (score: 18)
- Author: Rici Lake <lua@...>
- Date: Thu, 21 Sep 2006 23:09:22 -0500
- Fib = Memoise(function(n) return Fib(n-1) + Fib(n-2) end) Fib[1] = 1 Fib[2] = 1 = Fib[200] The definition of Memoise I use has been left abandoned on the Lua Wiki at http://lua-users.org/wiki/FuncTa
- 192. Re: Functional programming (was Re: Default value in function parameters?) (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Thu, 21 Sep 2006 21:50:17 -0400
- You could also avoid the C recursion limit by having a memoization scheme that does not use functables: func_memoize = function(f, t) local t = t or {} return function(k) local v = t[k] if v==nil th
- 193. Re: Deleting all elements from a table (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Wed, 13 Sep 2006 23:16:38 -0400
- Yes. But I think the loop is quadratic because "next" is being called ab initio in the fourth line. This should be linear local k = next(t) while k ~= nil do t[k] = nil k = next(t, k) -- note the se
- 194. Re: finding out number of records in a table?? (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Tue, 12 Sep 2006 16:26:51 -0400
- True enough. :) I missed your point, but now I think the main issue here is that for tables, if table[key] ~= nil, key/value access metamethods (__index and __newindex) are not called; this would ha
- 195. Re: finding out number of records in a table?? (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Tue, 12 Sep 2006 15:17:57 -0400
- Correcting myself: the proxy was needed because of __len _and_ __newindex. It would also be nice to have for table's newindex to look for a __newindex metamethod. Now I understand the need for a __r
- 196. Re: finding out number of records in a table?? (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Tue, 12 Sep 2006 14:24:15 -0400
- I had to use the proxy userdata to override __len, since you can't set __len for tables. Otherwise, you could get away with just function newhash() local n = 0 return setmetatable({}, { __index = fu
- 197. Re: finding out number of records in a table?? (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Tue, 12 Sep 2006 12:51:59 -0400
- The need to know the number of hash entries is common, and can be easily computed by a table traversal. I think that lhf meant that it is not so common as to need an specific idiom for it. If you re
- 198. Re: thread state and dynamically loadable library (score: 18)
- Author: Doug Currie <doug.currie@...>
- Date: Tue, 5 Sep 2006 17:21:10 -0400
- Yes, I see. That would be a bit faster and safer than using the global registry, at the cost of an extra slot in each of the closures. But wait! Lua 5.1's LUA_ENVIRONINDEX can create a shared environ
- 199. Re: The purpose of LUA_ENVIRONINDEX pseudo index (score: 447)
- Author: Luis Carvalho <carvalho@...>
- Date: Tue, 29 Aug 2006 17:47:07 -0400
- You misinterpreted it. The manual is actually clear, although terse: "Pseudo-indices are used to access the thread environment, the function environment, the registry, and the upvalues of a C functi
- 200. Re: The purpose of LUA_ENVIRONINDEX pseudo index (score: 125)
- Author: Jose Luis Hidalgo Valiņo <joseluis.hidalgo@...>
- Date: Tue, 29 Aug 2006 20:28:46 +0200
- Wow!!!, thank you for the explanation now I have a new understanding about lua stack and its environments. Definitely the purpose of pseudo-indices is not very clear in the manual. I thought that obj
Search by
Namazu v2.0.21