lua-users home
lua-l archive

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


Have you embedded newlines into your buffer?


-----Original Message-----
From: Matthias Gall [mailto:matthias@sechsta-sinn.de]
Sent: Sunday, February 25, 2001 8:39 PM
To: Multiple recipients of list
Subject: Re: calling script with dobuffer doesnt work


> The problem is the last line.  The "write" function isn't built into the
> core lua language, it's actually part of the add-on I/O library.  You must
> initialize the standard libraries in your host "C" program before they can
> be used (lua.exe and luac.exe do this for you).

i already did that. the interesting thing is, that only lua_dobuffer does
not work, lua_dofile does!

thank you anyway,
matt