]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: Map.end are not reliable because "end" is a reserved keyword
authorThierry FOURNIER <thierry.fournier@ozon.io>
Sat, 28 Jan 2017 07:33:08 +0000 (08:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Jan 2017 19:29:10 +0000 (20:29 +0100)
commit4dc7197338e83610290e78d8a9e579e8e9013391
treedf25817d6ea43e3334f4be39032c0eaf8c4a89af
parentc0752565fe13fb040a5437f6c326a6f78a3b9d2b
BUG/MINOR: lua: Map.end are not reliable because "end" is a reserved keyword

This patch change the names prefixing it by a "_". So "end" becomes "_end".
The backward compatibility with names without the prefix "_" is assured.
In other way, another the keyword "end" can be used like this: Map['end'].

Thanks Robin H. Johnson for the bug repport

This should be backported in version 1.6 and 1.7
doc/lua-api/index.rst
src/hlua.c