From 5.2 to 5.3: luai_write functions

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

From 5.2 to 5.3: luai_write functions

Dirk Laurie-2
In Lua 5.2.4, there are functions (implemented as macros) in luaconf.h:

luai_writestring
luai_writestring(s,l)
luai_writeline()
luai_writestringerror
luai_writestringerror

They are not in Lua 5.3.5. Instead, there are functions with similar
names but starting lua_ instead of luai_.

Can one use the ones without the "i" as a drop-in replacement whan
converting from Lua 5.2 to 5.3?

Reply | Threaded
Open this post in threaded view
|

Re: From 5.2 to 5.3: luai_write functions

Roberto Ierusalimschy
> In Lua 5.2.4, there are functions (implemented as macros) in luaconf.h:
>
> luai_writestring
> luai_writestring(s,l)
> luai_writeline()
> luai_writestringerror
> luai_writestringerror
>
> They are not in Lua 5.3.5. Instead, there are functions with similar
> names but starting lua_ instead of luai_.
>
> Can one use the ones without the "i" as a drop-in replacement whan
> converting from Lua 5.2 to 5.3?

Probably yes.

The 'luai' in the former names meant they were "internal" definitions,
not intended for use outside the Lua code. As they remain undocumented,
they are still not part of the official API.

-- Roberto