lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Sorry for the noise; the problem was that my script was binding to a specific socket, and when I dofile() again, that particualar socket address is already in use!

-t

On Fri, 25 Aug 2006 12:34:36 -0500, Thomas Blom <thomasblom@logicfactory.com> wrote:

I'm sure this has been discussed many times, but I can't find it.

I have a simple script that defines some functions.

I enter the lua interpreter, and define some test data (strings etc...)

I dofile(myscriptfile) and then test the functions with my data. I have an editor open and edit the script file, and would like to reload the script without having to exit the interpreter and redefine test data.

What's the best way to achieve this?


(I assume this same issue would apply to a C-program that dynamically loaded and executed lua scripts. )


thanks -t





--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/