I'm looking for a lua IDE on linux. The majority of suggestions I've seen so far are windows only.
I would have liked to use one of the Eclipse plugins for lua, but both of them -- LuaEclipse and LunarEclipse -- haven't been updated in nearly two years, and don't seem to work with Eclipse 3.5. If you have had any luck in getting lua...
I have partially ported the LuaObjCBridge to the iPhone. Most things work but there are still some issues I have to deal with.
There are sections where #defines are defined with-respect-to intel or ppc. Is the ARM chip closer to intel or ppc?
Here is the most relevant section where most of the defines are:
#if defined(__ppc__)||define...
normally, I would just use
lua_pushstring(lua_State* L, const char* s);
however, the string I want to push might have a null character in it. How do I make that work?
...
I've found some places on the web saying that operators in Lua are overloadable but I can't seem to find any example.
Can someone provide an example of, say, overloading the + operator to work like the .. operator works for string concatenation?
EDIT 1: to Alexander Gladysh and RBerteig:
If operator overloading only works when both ope...
I want to reload lua scripts at run-time. What are the ways to do this? Do you just have to reinitialize the lua system and then re-read all the lua files?
...
For those that have glanced through the lua C VM implementation.
Would the use of C++ significantly simplify the implementation?
Thanks!
...
I am trying to compile a library originally written for Cocoa. Things are good until it looks for the function marg_setValue(). It says there is a syntax error before char in
marg_setValue(argumentList,argumentOffset,char,(char)lua_toboolean(state,luaArgument));
(it's talking about the third argument, not (char) )
I am trying to port...
Hello
I have just learnt about iPhone-Wax (thanks to SO). Now the documentation is rather sparse for what I am trying to do.
I want to embed it into an Objective-C app. I don't want it to be the main app. Has anyone done it and how can I achieve it?
I would like to use it in the same way LuaObjectiveCBridge is used.
...
I'm going to use that template engine LTP . There is not so much doc available.
Now i'm stuck how to pass an environment into the render engine. I have basically this:
local ltp = require("ltp.template")
ltp.render(io.stdout, 1, "index.dhtm", false, {}, "<?lua", "?>", { total="2400" })
What data structure should be the last parameter...
The Wikipedia article on Continuation says:
"In any language which supports closures, it is possible to write programs in continuation passing style and manually implement call/cc."
Either that is true and I need to know how to do it or it is not true and that statement needs to be corrected.
If this is true, please show me how to implem...
Let's say a tester is to do some programming to create automated tests ... is Lua really easy to learn for someone who is not a developer?
...
How do I extract files using Lua?
Update: I now have the following code but it crashes every time it reaches the end of the function, but it successfully extracts all the files and puts them in the right location.
require "zip"
function ExtractZipAndCopyFiles(zipPath, zipFilename, destinationPath)
local zfile, err = zip.open(zipPa...
I have an executable I want to run using Lua ... how do I do this?
Can't seem to find any documentation anywhere about this.
...
I have the following code but it crashes every time it reaches the end of the function, but it successfully extracts all the files and puts them in the right location.
require "zip"
function ExtractZipAndCopyFiles(zipPath, zipFilename, destinationPath)
local zfile, err = zip.open(zipPath .. zipFilename)
-- iterate through each...
I am trying to access already instantiated OBjC classes via Lua. How can I do it?
...
If I have this code
local f = io.open("../web/", "r")
print(io.type(f))
-- output: file
how can I know if f points to a directory?
...
This example code fails:
require("socket")
require("ssl")
-- TLS/SSL server parameters
local params = {
mode = "server",
protocol = "sslv23",
key = "./keys/server.key",
certificate = "./keys/server.crt",
cafile = "./keys/server.key",
password = "123456",
verify = {"peer", "fail_if_no_peer_cert"},
options = {"all", "no_sslv2"...
I know how to print "all" global variables using the following code
for k,v in pairs(_G) do
print("Global key", k, "value", v)
end
So my question is how to do that for all variables that are accessible from the currently executing function, something that can do what locals() does for Python.
...
I have a DLL written in C++ that is legacy code and cannot modify the source code. I want to be able to call some of the functions inside of the DLL from Lua.
For example, I'd like to do something like this:
-- My Lua File
include(myCppDll.dll)
function callCppFunctionFromDll()
local result = myCppFunctionFromDll(arg1, arg2)
...
I an trying to put a method in a separate thread in the background. It nearly works except that occasionally I get a lot of error messages with the message
METHODCLOSURE: OH NO SEPERATE THREAD
with the bad spelling and all.
Does anyone know what this means? The thread runs, interestingly
More specifically:
I invoke a background pr...