lua_dobuffer

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

lua_dobuffer

Cameron Tofer
I would like to execute a multi-line buffer.  dostring only executes one
line, and dofile uses a file.  I found dobuffer but I don't know how to
use it correctly.

cameron tofer

Reply | Threaded
Open this post in threaded view
|

Re: lua_dobuffer

Luiz Henrique de Figueiredo
>I would like to execute a multi-line buffer.  dostring only executes one
>line, and dofile uses a file.

dostring does work for multi-line buffers.

>I found dobuffer but I don't know how to use it correctly.

dobuffer only works for buffers containing precompiled code.
--lhf