[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Odd loadstring behaviour.
- From: Polarina <gabrielp@...>
- Date: Thu, 03 Apr 2008 19:29:34 +0000
a = function (a)
"print(" .. ("a("):rep(10^6) .. "a" .. (")"):rep(10^6) .. ")"
The above code snippet errors with Lua falsely claiming that an attempt
was made to call a nil value. Replacing 10^6 with, for example, 10
would cause Lua to happily enter an infinite loop.
P.S. If I wrote something stupid again, please let me know and I'll
never post to this mailing list again in order to avoid filling up users
inboxes with useless crap. :)