Questions tagged [lua-5.3]

A lightweight multi-paradigm programming language designed as a scripting language with extensible semantics as a primary goal.

Lua (/ˈluːə/ LOO-ə, from Portuguese: lua [ˈlu.(w)ɐ] meaning moon; explicitly not "LUA") is a lightweight multi-paradigm programming language designed as a scripting language with extensible semantics as a primary goal. Lua is cross-platform since it is written in ANSI C.

Lua has a relatively simple C API.

Wikipedia: http://en.wikipedia.org/wiki/Lua_%28programming_language%29

49 questions
0
votes
2 answers

Replace functions in package.loaded

How can you replace all the functions for a particular library in package.loaded after a require call? I've tried to iterate over the relevant table but the table comes up empty. local aLibrary = require "aLibrary" for key,value in…
Puddler
  • 2,619
  • 2
  • 17
  • 26
-1
votes
1 answer

Lua table examples are not working for me

I'm trying code from lua.org and from my 4th edition Programming in Lua hardcopy, and as far as I've read all these table examples should work but 3 out of 4 don't, and I cant find anything the docs that says why. Some help on what I am missing…
Adrian Cornish
  • 23,227
  • 13
  • 61
  • 77
-2
votes
2 answers

Lua code elseif not working

This is all about accepting input from user and searching with that particular text. Playing with string.gsub. io.write("ENTER ANY STORY :-D ") story=io.read() io.write("\t OKAY!, THAT'S NICE :-D ") io.write("\t DO YOU WANT TO REPLACE ANY TEXT:? …
-2
votes
2 answers

What are the names of all function from the Lua 5.3 string library?

Here is a function name register closure which I use to register library names: The Pool object: function FooBarPool() local Names = {} local self = {} function self:Register(fFoo,sName) if(fFoo) then Names[fFoo] = sName …
1 2 3
4