Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 8 9 10 11 12 … 18 Next »
Funny Lua5.1 bug
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Funny Lua5.1 bug
20-11-2016, 11:56 AM,
#3
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Funny Lua5.1 bug
I'd firstly question why you're trying to "compress tables" in the first place. Turning a table into a string and then compressing that is not a good way to encode a table.

Secondly, no this is not a Lua 5.1 bug. There's a distinct difference between a variable (which is a syntax construct) and a key in a table (which is purely data). You can have any string value as a table key, whether it would be valid to write as a variable or not. For example, these are all valid:
{
[ "function" ] = true,
[ "12345" ] = true,
[ "+" ] = true
}
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Funny Lua5.1 bug - by ILoveYou - 19-11-2016, 06:34 PM
RE: Funny Lua5.1 bug - by Red The Blue Color - 20-11-2016, 05:02 AM
RE: Funny Lua5.1 bug - by Person8880 - 20-11-2016, 11:56 AM

  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.