URL:
<http://gna.org/patch/?3937>
Summary: Remove const.TRUE and const.FALSE from Lua API
before the stable release.
Project: Freeciv
Submitted by: englabenny
Submitted on: sön 9 jun 2013 01.40.00
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.4
_______________________________________________________
Details:
I think
const.TRUE = 1
and
const.FALSE = 0
were added to demonstrate the const module. It would be a mistake anyway,
since lua already has the keywords `true` and `false` (of boolean, not number
type).
Let's remove this before 2.4 goes stable so it doesn't have to stay in the API
forever.
Patch removes the two variable definitions but leaves the empty const table
intact.
Patch applies for master and 2.4.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: sön 9 jun 2013 01.40.00 Name:
0001-Remove-const.TRUE-const.FALSE-from-lua-API.patch Size: 798 B By:
englabenny
Simple patch.
<http://gna.org/patch/download.php?file_id=18061>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?3937>
_______________________________________________
Meddelandet skickades via/av Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev