[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: I think it's "require" but I can't get it to work....
- From: Ron Hudson <rhudson@...>
- Date: Sat, 25 Oct 2003 13:50:35 -0500
On Saturday, October 25, 2003, at 12:21 PM, Leandro Candido wrote:
error: attempt to call global 'loadfile' (a nil value)
Did you have modified Lua sources (.c)?
I don't have the sources here, it's the compiled version in
----- Original Message -----
From: "Ron Hudson" <firstname.lastname@example.org>
To: "Lua list" <email@example.com>
Sent: Saturday, October 25, 2003 12:55 PM
Subject: Re: I think it's "require" but I can't get it to work....
I had that. I tried several things, most of the time LUA complained
that "dofile" or "require" were
= nil, but when it did not complain, references in the program to
subroutines in ansi.lua were nil
I have finally copied ansi.lua into the top of my program.
is there somthing special I have to do in a "dofile" file? have no
global stuff and only functions
On Saturday, October 25, 2003, at 09:40 AM, Daniel Silverstone wrote:
On Sat, 2003-10-25 at 15:34, Ron Hudson wrote:
ansi.lua is in the same directory as the file I am working on.
if that's your current directory then you can just do:
Daniel Silverstone <firstname.lastname@example.org>