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);

The package lua-4.0-beta.tar.gz in the official sites has been updated
with this patch. The RCS version of liolib.c is 1.84a in the patched version.
--lhf