lua-users home
lua-l archive

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

On 1/30/2017 2:56 AM, Egor Skriptunoff wrote:
On Mon, Jan 30, 2017 at 7:46 AM, Martin
< <>>

    return 'Whoops! someone ate tail apostrophe...

Any character inside any variable name can be eaten too,
and horrible thing (global variable is used instead of local one)
Nevertheless you can live happily with it.

Closing "end" of some block (for-end, do-end, function-end)
could be eaten too, and Lua raises error
"'end' expected near ..."
without giving you a knowledge about the line#
where the error actually happened.
Usually error message points to the very end of your file.
Nevertheless you can live happily with it.

Use an editor with indentation and folding... I do not use visual indentation, folding marks are usually good enough for me.

The situation with apostrophe been eaten does not introduce
"horrible things" which previously do not exist in Lua.

Kein-Hong Man (esq.)
Selangor, Malaysia