[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re:
- From: "Eduardo Ochs" <eduardoochs@...>
- Date: Mon, 9 Jul 2007 11:12:42 -0300
On 7/9/07, Minardo Gollun Gonzalez Lopez <firstname.lastname@example.org> wrote:
I need a code, using Lua5.1.2 that allows me to load a Lua file and print the name of all the functions that have the document. Please any people that have an example or tutorial send It to me because I have not been able to make an example that loads lua and execute it correctly using the latest libraries.
Write to: email@example.com Thank you...
Saludos: Ing. Minardo G. González López.
Start by running this on a Lua interpreter:
for k,v in pairs(_G) do print(k, type(v)) end
You should see something like this:
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
> for k,v in pairs(_G) do print(k, type(v)) end
Take a look at the "Programming in Lua" book, that is online at
<http://www.lua.org/pil/>, and at the reference manual; I don't
understand what you mean by "all the functions that have the document"
- you need to explain that more clearly, and to tell us how you're
trying to use Lua, your operating system, etc (are you trying to use
it from C without ever having used the interpreter?!?! Ouch!) - if you
want us to be able to help you.
- RE:, Minardo Gollun Gonzalez Lopez