> I just modified one line in function f_parser in ldo.c to:
>
> const char *mode = p->mode ? p->mode : "Bt";
>
> [...]
>
> A "simple" question: Is it a good idea, to do this "one-line" code
> modification at this point? Or would you better recommend it in some
> "upper function"?
Note that, in general, buffers can live in memory that is not "fixed",
and Lua has no way to check whether a "fixed" buffer is actually fixed.
So, to make the default for everyone assumes that any binary chunk lives
in fixed memory seems too error-prone. It is better to make the user
declare explicitly, when calling luaL_loadbufferx (or similar), whether
the buffer is fixed.
-- Roberto