Noob Codes
How to use ?
Login
Register
Home
lua
Why does my code only print nil once?
Why does my code only print nil once?
snippet in lua
Why does my code only print nil once?
user9963
print(x(true), x(false), x(false))
stackoverflow.com
Login to continue
×
Submit answers directly from your webpage,
Login
Register
×
Login to continue
Submit answers directly from your webpage,
Login
Register
⇦
Previous
Add answer
⇨
Next
Other quiries
Is it possible to overload operators for strings?
Write-once table in lua?
interactive popen() Lua call
Sandboxing in Lua 5.2
Lua Table Memory?
How to bind a C++ function to lua that return multiple values with luabind?
How to get data from table in Lua
Lua inheritance - call method on super
How to split a Lua table containing sub-tables
How to trace MySql queries using MySql-Proxy?
get IP Address in Lua
Loop through all Lua global variables in C++
Awesome WM: move/resize maximized floating windows
Why can't I catch a luabind::error exception when my lua code throws an error?
“Bitwise AND” in Lua
Call an anonymous function with a local variable as parameter
Lua variable scoping with setfenv
LPeg grammar oddity
how to extract the domain from a URL
Lua: iterate through every possible k-length string given a list of symbols
how do I extend Lua with a static c++ library?
Can lua function references be used as table keys?
Can Lupa be used to run untrusted lua code in python?
Attempt to index local 'file' (a nil value) at file:write
Syntax Change in lua 5.2 C api
Lua string.gsub with Multiple Patterns
Lua: attempt to compare boolean with number
Lua sort table alphabetically, except numbers
How to embed hex values in a lua string literal (i.e. \x equivalent)
Torch tensor equivalent function to matlab's “find”?
Lua find a key from a value
How to download a file in Lua, but write to a local file as it works
Sum of the digits of an integer in lua
send lua output to non stdout
In Lua, is there a difference between local functions declared with and without the “local” keyword?
How can I end a Lua thread cleanly?
Lua: use table as args
get html with lua
Format integer in Lua
Visualize images in intermediate layers in torch (lua)
Lua - Two local variables with the same name
What does the “in” keyword in Lua do?
How can I convert an IP address into an integer with Lua?
Lua: Is there a way to concatenate “nil” values?
Using Lua, check if file is a directory
How to pass a pointer to LuaJIT ffi to be used as out argument?
Lua Match Everything After Character in String
Why does Lua prohibit goto over a local var definition?
remove all non-alphanumeric characters from lua string
Lua script to return efficient dictionary from Redis HGETALL call
Lua iterator to array
Function creating in Lua
lua_open returns null using luaJIT
Is there a more readable way to write for k, v in pairs(my_table) do … end in lua if I never use k?
Lua base converter
Finding a number in a string lua
How to load text file into sort of table-like variable in Lua?
How do I make a dynamic variable name in Lua?
get complete url using nginx and lua with openresty
How to open a web socket with Lua scripting language?
Sort Arrays in Array in Lua
_REQUIREDNAME always nil
“attempt to index a nil value”-error in Lua
Is it possible to emulate bind in Lua?
lua send mail with gmail account
Lua: attempt to perform arithmetic on a string value
How to Round to the Nearest Tenth?
Lua - convert a table into a comma separated list
Lua : Fetch a webpage
Variable name to include value of another variable
How can I detect at runtime if I am running Luajit or PUC Lua 5.1?
Lua: pass context into loadstring?
Lua arguments passed to function in table are nil
Redis Capped Sorted Set, List, or Queue?
How do you execute a lua file in sublime text 3?
Lua string.match uses irregular regular expressions?
Lua decimal sign?
How to check if a module exists in Lua?
Create a new file in Lua/LuaFileSystem
How do I get the highest integer in a table in Lua?
How does the __call metamethod in Lua 5.1 actually work?
remove '$' characters from a string
How to get lua to run sequentially
How can I load and execute a lua file from within another lua file
extending Lua: check number of parameters passed to a function
What is a way to reload lua scripts during run-time?
In Lua, how can I tell if a number divides evenly into another number?
Lua - get indexOf string
How to convert torch Tensor/ Storage to a lua table?
How can I check if a lua table contains only sequential numeric indices?
How to write a unicode symbol in lua
Corona: Attempt to concatenate global 'sceneName'
What is the alternative for switch statement in Lua language?
Lua “”==true equals “”==false
Calling functions in a Lua table from C++
Get file name from URL using Lua
A regex I don't understand
Loadfile without polluting global environment
how to set the LUA_PATH and LUA_CPATH for the zerobrane studio in linux
How to get the size of an array in LUA?
What are the benefits of coroutines?
LuaBind: How to bind specific instance of class to Lua?
Abandoning coroutines
Find the last index of a character in a string
How to use lua_pop() function correctly?
Boolean to number in Lua
Returning 'nil' from a Lua function in C vs returning 0 values
Torch: How to shuffle a tensor by it's rows?
get current date and time in lua in redis
lua http socket timeout
How do I create a Lua Table in C++, and pass it to a Lua function?
Lua : remove duplicate elements
how to urldecode a request_uri string in Lua
LuaL_openlibs() and sandboxing scripts
lua split into words
Using the TYPE command inside a Redis / Lua Script
Can I separate `init.lua` to different components in Hammerspoon?
The length of Arabic letters in Lua
How to get last N characters of string in Lua?
What are the most idiomatic ways to combine tensors in torch?
Register C function in Lua table
Lua - convert string to table
Finding '.' with string.find()
Lua - table.insert not working
Lua: Install a rock using luarocks from a locally installed rock (or from a .zip/.tar.gz)
Lua socket asynchronous calls
how to find out all properties of an object in lua?
Writing multiline text files in Lua
lua equiv of __LINE__ and __FILE__?
Lua unpack bug?
How to gracefuly try to load packages in Lua?
lua socket client
Determining if a number is odd or even in Lua
Torch - repeat tensor like numpy repeat
Setting the global LUA_PATH variable from C++/C?
Recreating setfenv() in Lua 5.2
How to make namespace in lua?
How to keep the order of a Lua table with string keys?
Why does the Lua REPL require you to prepend an equal sign in order to get a value?
can pcall return value of called function instead of boolean result true/false?
“Undefined reference to” using Lua
Lua Require function on a full path name
Lua C API: what's the difference between lua_gettop() and -1?
Getting a part of a list or table in Lua
Getting input from the user in Lua
How to create a directory in Lua?
Is there a lua equivalent of javascript's apply()?
How to convert a Lua string to float
How can I know return value count of a Lua function from C?
using type() function to see if current string exist as table
Lua - if statement with two conditions on the same variable?
Best way to omit Lua standard libraries?
io.popen - how to wait for process to finish in Lua?
How to terminate Lua script?
Lua Integer type
Check if directory exists in lua?
How to inspect userdata in lua
Bizzare “attempt to call a table value” in Lua
https request in lua
How to generate random float in lua?
How to delete the last character of the text?
Iterate through Lua Table
In Lua, how can you print the name of the current function, like the C99 __func__ identifier?
Lua's package path in nginx
How can I print a huge number in Lua without using scientific notation?
Should I use ipairs or a for loop
Casting between void * and a pointer to member function
Incrementation in Lua
Redirecting/redefining print() for embedded Lua
counting number of string occurrences
Lua: How to find out if an element is a table instead of a string/number?
Lua 5.2 LUA_GLOBALSINDEX Alternative
How do I make a 2D array in Lua?
Is there special meaning for ()() syntax in Lua
How to get first character of string in Lua?
Last Index of Character in String
get current working directory in Lua
Returning multiple values from functions in lua
Lua - get command line input from user?
Why do we need to call Lua's collectgarbage() twice?
Print stacktrace from C code with embedded lua
Does lua have something like python's slice
Generating uniform random numbers in Lua
What is the neatest way to split out a Path Name into its components in Lua
First character uppercase Lua
Reading whole files in Lua
Does Lua have OR comparisons?
Lua - Number to string behaviour
How can I determine the OS of the system from within a Lua script?
How Do I Install Lua on MacOS?
How do I convert string of hex digits to value it represents in Lua
Get containing path of lua file
Variable number of function arguments Lua 5.1
Store a Lua function?
Forward define a function in Lua?
Check if array contains specific value
How can I ignore first results from a function in Lua?
What is the standard (or best supported) big number (arbitrary precision) library for Lua?
How to calculate distance between two rectangles? (Context: a game in Lua.)
How do I run an executable using Lua?
How to put a label after a return statement in Lua?
Loading a file and returning its environment
What should a C function called from Lua that pushes a table return?
luabind: Can't call basic lua functions like print, tostring
Linker Error Lunatic Python lua.require('socket') -> undefined symbol: lua_getmetatable
Safe Lua invoke C++ registered function
Difference Between Tables and Metatables in Lua
In Lua, how to get the tail of an array without copying it?
Convert hex to decimal keeping fractional part in Lua
Lua compiled scripts on Mac OS X - Intel vs PPC
How do I convert a lua string to a C char*?
Lua Prime Number Checker
Lua check if a number/value is nan
Split a string by \n or \r using string.gmatch()
How do I convert seconds since Epoch to current date and time?
is there a shortened “if then” syntax available in Lua?
Lua How to tell 1 from 1.0
Getting arg to work in a varag function in Lua 5.2 (integrated in Delphi)
Is there any way to loop through an array without using pairs()?
lua overload: possibilities?
How to increase memory to handle super large Lua tables
String to Table in Lua
Lua C API and metatable functions
Returning the index of a value in a Lua table
Nginx + LUA, how to output file?
luaL_dostring puts nothing on the stack?
Why is Lua arithmetic is not equal to itself?
lua c api: how to push a string with a null character in the middle?
Convert decimal to hex in Lua 4?
Lua in pairs with same order as it's written
Corona SDK setFillColor not coloring when mix colors
lua - Access table item from within the table
Boost mutex locking on same thread
Lua script and redis - how to test for None value
Print number of characters in UTF-8 string
LUA: String to variables
Error: No results matching query were found. for luarocks in ubuntu
No parentheses after a function name
A Lua iterator that fails silently?
Lua: 'pairs' doesn't iterate over [1]
Lua Love2D - How can I make it download a file?
is it possible to call lua functions defined in other lua scripts in redis?
lua wireshark plugin dissector buffer length
Detect file opening error on Lua
Lua Nested Table Getting Elements
How to build C program that emedded Lua
Lua functions — a simple misunderstanding
Lua: Sort String array with varying casing
How to count the amount of words in a text file in Lua
Lua cannot find LuaRocks-installed modules on Linux
How does Lua's floating-point handling differ from other languages?
Operator overloading not working
lua - late call of class destructor
Reboot a System through Lua Script
C & Lua: luaL_dostring return value
How to fix this unpack issue?
Differences between two tables in Lua
Why use ')' when calling a function?
Open a Lua .love file in Vim
Is it possible to change a value inside a Lua bytecode? How? Any idea?
My 'randomString' function keeps returning the same result
LuaBridge and Member Functions
downloading and storing files from given url to given path in lua
Eval function in LUA 5.1
How do I apply formatting like italic or bold to text using ANSI escaping sequences in a console?
Lua script throws error “attempt to call a nil value (field 'deposit')”
Is it possible to list all the functions of a table?
Functions in Lua could store local values between calls?
ffi.C missing all declarations for all symbols
LuaJit FFI Return string from C function to Lua?
Lua ternary operator - multiple variables
Convert a CSV file into a table with defined keys in Lua
Lua 4.0 undeclared variables and conditional statements
Calling a c function from lua 5.2 generates a syntax error
Lua socket.http sink parameter
How to focus client in Awesome WM
Lua: Include file in the same directory
How do I display array elements in Lua?
Lua: How to set a variable to zero
Lua table.concat
Why won't applications in Program Files run using os.execute in lua?
What is the C interface to Lua for accessing a table's key/value pairs?
How safe is comparing numbers in lua with equality operator?
array element has incomplete type
How to make an infinite loop in Lua code?
Lua: Random: Percentage
Strange logic in Lua script?
Do file only once in Lua
Setting content dispose based on url / nginx
Email address validation using corona sdk
Use assert with pcall in Lua
How can I remove text inside brackets in Lua?
Measuring elapsed time in lua (+love2D)
How to pop / clean Lua call stack from C
Equivalent to Lua “and/or” in C++?
How to iterate over pairs of elements in table in lua
LUA count repeating characters in string
Lua, Error Handling pcall()
Why isn't 2 equal to √2 * √2?
Lua metatables: class fields vs instance fields
How to wipe or reset a table in Lua
Should parameters be used as variables in Lua?
lua tables, simplest way to overload __tostring
Redefine type of variable in Lua
Lua 'end' expected (to close 'function' at line near '<eof>'
lua - How to get decimals to round down on the half
luasql nil value
How to pass Table(list of numbers) from Lua to C and access it
Lua Base64 Encode
Convert String into Arithmetic Operator
Returning the inside of a table from a function
Global function in lua
putting '%' in string.gsub() in Lua
Lua metamethods not being called
Error handling in Lua using longjmp
Getting table entry index
How do you assign multiple values in a key for a table?
Redis - Why is this code SO fast?
require('image') not working in Torch7
Why is lua so slow in redis? Any workarounds?
Lua - string.find(x, “a - b c”) gives nil value
How does this C code (from lua library, Torch) even compile/work?
How to find which version of Lua do I use?
How to to add “th” or “rd” to the date
Is there an Equivalent scanf function in Lua?
Error loading module (Lua)
destructors on gc-ed lua objects
C++ Preprocessor metaprogramming: obtaining an unique value?
LuaJIT and C++ - call to Table.Method() does not work in loadstring/pcall
NewLine(\n) alternative in Lua?
Spring Data Redis: Redis Pipeline returning always null
Lua - rewriting coroutine recursion to tail-call recursion
Why print(print()) not work like print(type(2)) in Lua?
cairo_text_extents_t is not recognized by lua
Scrapy + splash: can't select element
access to global variables in lua
Lua elseif not working properly
Lua How to create custom function that can be used on variables follow up
Sum of primes in a number - Lua
How to set a “require” to return a table/module from Lua C API?
return several parameter from lua C function
Premake4 utility and application entry point
is there a way to define auto-escaped string in lua (raw)?
Lua: store unspecified number of items in return value
Lua - simple iterator assignment?
Lua string inside variable reference
Control problems
Corona table.sort()
Displaying Lua tables to console by concatenating to string
Lua: Finding a token in a delimited string
how to get caller of function within a function in lua?
Building and Installing Lua 5.2.0 on Mac os x Lion
Lua C API: Handling and storing additional arguments
Defining Lua methods as initialization
Regular Expressions for Japanese in Lua
Dynamically assigned table variables?
Error with self invoking anonymous functions in Lua
How do I insert a string into another string in Lua?
Lua table diff key function
Reassigning strings to a set list of values in an array
Two instances of a Lua “Class” are the same “object”
How can I access values from multidimen array in lua?
Match whole, exact text line with Lua
Lua os.date() - What's the difference between *t and !*t
String match URI with Lua patterns
Key repeats are delayed in my Hammerspoon script
Parsing key value pair with Lua
Lua loadstring Function fail
image.display window in lua/torch
How to manage large strings
Passing a table as argument to function in Lua
Rbx.Lua - Why can't I store a .txt file as a table?
Parse parameters out of URL in Lua
Passing an array name to a function, then populating it
How do I create a save game feature in love2d?
Comparing integer variables in LUA
Creating a Namespace In Lua Across Files
How to nest modules into namespaces when registering functions from C in Lua?
What is the scope of a Lua variable?
Controlling Variable Scope In Lua; It's changing both Vars
Reading a file on Lua
How do I compare the contents of a capture with another string in lua
A calculator using Lua string matching
the following lua code does not make sense
Correct pattern doesn't work in Lua gmatch
Compare string if there's at most one wrong character in Lua
Lua HTTP download and save to file
Trigger build when non-source files change
Using Lua tables as 2-dimensional arrays
How to bind a std::map to Lua with LuaBind
Table insert gives a nil error
What's the proper way to use coroutines for event handling?
jump object on collision
LuaLanes Unable to pass global variables between functions (in a single lane)
Subtracting hours from os.date()
Cannot link with Lua library on Linux
checking for boolean true / false result in postgresql query
why do i get “attempt to call global 'require' (a nil value)”?
Can I run Lua interpreter in evaluator mode?
Only one tcp server allowed ESP8266 with Lua