lua-users home
lua-l archive

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


The call «read("*w")» (to read a word) should return nil at end of file.
Instead, it is returning the empty string. You can correct this with a
one-line patch:

liolib.c: 327c327
<   return (lua_strlen(L, 1) > 0);
---
>   return (lua_strlen(L, -1) > 0);

-- Roberto