lua-users home
lua-l archive

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

Premshree Pillai wrote:

> Actually, I tried using the "Classic Lua-only version"
> listed at When I run the
> program, I get the following error:
>    unexpected symbol near `%'

That's because the program is in Lua 4, which used percent
signs for upvalues.  After the percent sign is removed and
gsub, strfind, strsub, tinsert, and tremove are changed into
string.gsub, string.find, string.sub, table.insert, and
table.remove, the program compiles and runs, but it doesn't
look to me like it works quite right, so there may be some
more subtle incompatibilities.