Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Weird Lua bug(?)

Name: Anonymous 2007-11-19 14:12

Was attempting to write an ETHIOPIAN NIGGER-SCALE SOLUTION to the problem posed by the OP of this thread: http://dis.4chan.org/read/prog/1195330684/ when I ran into a really odd bug:
n,t=io.read("*number"),{}
while n~=0 do table.insert(t,n) end
for i,v in ipairs(t) do print(i,v) end


Run this code, it will prompt you for a number, enter one and hit return: it will eat as much memory and CPU cycles as possible.

What the shit?

Name: Anonymous 2007-11-20 17:44

>>32
That post was made to alert my fellow 4channers that there was something to be gained by finding where that code snippet comes from, and in addition to give a direct link for their convenience.

It was not made to show off my "google-fu" (of which indeed little is needed for this task), so your summary of my post is incorrect. Therefore I feel that your outrage is uncalled for, and hope to recieve your apologies forthwith.

Sincerely,

Anonymous

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List