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

LuaJIT

Name: LuaJIT 2012-02-25 0:48

LuaJIT

Name: Anonymous 2012-02-25 18:21

Why `t = {"a","b","c"}; print(t[2])` works, but `print({"a","b","c"}[2])` doesnt?

>>19
Most languages are shit like JS/PHP. Where you have

var foo = [0];
foo == foo  // true
foo == !foo // true


>>20
Your answer shows that you're out of viable arguments. I will interpret it as your surrender.

>>21
http://doris.sourceforge.net/lua/weblua.php
Lua script:
unpack({1,2,3},2)

Run using lua generates:
error: attempt to call global `unpack' (a nil value)

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