Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 361. Re: Cross-platform newlines in multiline strings (score: 32)
- Author: RLake@...
- Date: Tue, 30 Mar 2004 19:03:09 -0400
- anything Well, it would break any script that had a \r in a string :) (Or whatever \r happens to be on your OS.) That is maybe a bad idea, but in principle you can put random binary strings into a L
- 362. Re: Advent of Code (score: 31)
- Author: Personal <daryl@...>
- Date: Mon, 3 Dec 2018 06:34:07 -0700
- Thanks! That sounds like something to come back to later when I have more than a day to work on it. -- Daryl Lee Sent from my iPhone On Dec 3, 2018, at 12:37 AM, Philippe Verdy <verdy_p@wanadoo.fr> w
- 363. Re: Advent of Code (score: 31)
- Author: Philippe Verdy <verdy_p@...>
- Date: Mon, 3 Dec 2018 08:37:03 +0100
- "cyclic artithmetic" is synonym for "modular arithmetic" (arithmetic over Z/nZ fields, where n is a finite integer and the division is inversible, unlike arithmetic on Z, Q, R or C with infinite boun
- 364. Re: Lua 5.4-work1 with first class arrays (implementation & benchmarks) (score: 31)
- Author: Petri Häkkinen <petrih3@...>
- Date: Wed, 28 Mar 2018 19:04:40 +0300
- Nope, there is no such problem. The beauty of a separate array subtype is that regular tables are not affected by the existence of the array type. pairs() and ipairs() work just like they did for tab
- 365. Re: 'table' as fallback for tables (score: 31)
- Author: Coda Highland <chighland@...>
- Date: Mon, 27 Jun 2016 17:18:47 -0700
- My biggest hesitation with declaring {1,2,3} as an explicit array constructor is that it would break existing code that relies on pairs() to iterate over sparse "arrays" if an unexpected "n" member w
- 366. Re: Breaking out of a function loop when querying a database that returns multiple rows of data (score: 31)
- Author: Sean Conner <sean@...>
- Date: Mon, 21 Sep 2015 19:14:06 -0400
- It was thus said that the Great Jonathan Goble once stated: Well, actually, he *could* break out of it: okay,results = pcall(dbh.query,dbh,todnew_query,function(result) if criteria(result) then error
- 367. Re: Updated RVM patch against Lua5.1.4---needs review (score: 31)
- Author: Jim Pryor <lists+lua@...>
- Date: Sat, 12 Sep 2009 17:25:34 -0400
- Here's an update. iFollowing a suggestion from Mike Pall, I changed the patch so that now it reverts, rather than tries to merge, the Attached now are _two_ patches against the original patch file: h
- 368. Updated RVM patch against Lua5.1.4---needs review (score: 31)
- Author: Jim Pryor <lists+lua@...>
- Date: Tue, 8 Sep 2009 09:03:06 -0400
- OK, I've done the grunt work of updating the Resumable VM patch against the Lua5.1.4 sources. What I've ended up with compiles and runs the test/ directory in the Lua5.1.4 sources without crashing. B
- 369. Re: [ANN] LuaCov 0.2 - coverage analysis tool (score: 31)
- Author: Geoff Leyland <geoff_leyland@...>
- Date: Fri, 1 May 2009 09:02:58 +1200
- Hello, I released a minor update to LuaCov (a tiny tool for coverage analysis written using the debug library) including a fix to a bug reported by Guilherme Lopes. Version 0.2 is now available at:
- 370. Re: Lua 5.1f: How to dump stack contents from C? (score: 31)
- Author: David Morris-Oliveros <david.morrisoliveros@...>
- Date: Mon, 13 Mar 2006 09:56:03 +1100
- This won't work 100%. Namely, it won't do boolean values (since they can't be coerced), and also, you modify the stack if there's a number that's converted to a string. // David Morris-Oliveros // Ca
- 371. Re: Lua 5.1f: How to dump stack contents from C? (score: 31)
- Author: "Karsten Schulz" <kahnpost@...>
- Date: Sat, 11 Mar 2006 23:17:04 +0100
- is that what u like ? int CLuaCallBacks::_print(lua_State *lua)//DirectCallFunction { lua_pushlightuserdata(lua, pid); lua_gettable(lua, LUA_REGISTRYINDEX); CLuaScript *pThis = (CLuaScript *)lua_tous
- 372. Doing without Self; some performance numbers (score: 31)
- Author: "Steve Donovan" <sjdonova@...>
- Date: Tue, 25 Jan 2005 14:51:03 +0200
- Hi guys, In our recent debates about OOP styles in Lua some people didn't like saying 'self' to qualify object fields all the time. The quick way to dispose with self is to use setfenv() to set the l
- 373. luaL_loadfilex returns LUA_ERRSYNTAX when file has wrong mode (score: 30)
- Author: Gabríel Arthúr Pétursson <gabriel@...>
- Date: Tue, 06 Dec 2016 02:07:37 +0000
- Hello, The documentation for luaL_loadfilex specifies that it'll return LUA_ERRFILE when the file has the wrong mode: "This function returns the same results as lua_load, but it has an extra error co
- 374. Re: Floats and %d (score: 30)
- Author: Daurnimator <quae@...>
- Date: Tue, 21 Jul 2015 20:53:40 +1000
- IIUC, this would break it for some numbers between 2^53 and 2^63
- 375. Re: Bug: Literal strings in long format are not quite literal. (score: 30)
- Author: Paul K <paulclinger@...>
- Date: Fri, 2 Nov 2012 15:57:03 -0700
- Hi Egor, You're right about escaping \n; I was thinking about the case when you need your %q output to be on one line. EOF breaks the content this way: -- eof.lua print(("print %q"):format("1\n2\0263
- 376. Iteration and nils (score: 30)
- Author: "Greg Falcon" <veloso@...>
- Date: Wed, 15 Aug 2007 23:38:06 -0400
- The recent thread about lists and nil got me thinking about the ways in which nil isn't a first-class data type in Lua. Of course, the focus of that thread was on sparse arrays and vararg lists. I've
- 377. Silent change to string.pack("cn",...) between 5.3.1 and 5.3.2 (score: 29)
- Author: Duane Leslie <parakleta@...>
- Date: Fri, 8 Apr 2016 12:20:39 +1000
- -- Re-Sending as plain text, Sorry. I reverted the "cn" change in my version because I decided the failure of the following assertion (without some other error) was unacceptable: assert(("c8"):unpack
- 378. Re: Silent change to string.pack("cn",...) between 5.3.1 and 5.3.2 (score: 29)
- Author: Duane Leslie <parakleta@...>
- Date: Fri, 8 Apr 2016 12:14:30 +1000
- I reverted the "cn" change in my version because I decided the failure of the following assertion (without some other error) was unacceptable: assert(("c8"):unpack(("c8"):pack(input_string)) == i
- 379. Re: Read user input from terminal when a pipe is used (score: 29)
- Author: Bernd Eggink <monoped@...>
- Date: Fri, 06 Dec 2013 17:49:16 +0000
- Example: history -n | tail -n 10 | my_script In this case is io.stdin a file descriptor to the pipe. How can i get now in lua a file descriptor on the current terminal? io.stdin is what you want; you
- 380. Re: Reading CSV (score: 29)
- Author: Sean Conner <sean@...>
- Date: Tue, 3 Dec 2013 17:42:51 -0500
- It was thus said that the Great Coda Highland once stated: You're right--I did miss that. A similar approach can still be done. Just define a single line (from RFC-4180): lpeg = require "lpeg" TEXTDA
Search by
Namazu v2.0.21