lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>* is there an opcode list that describes the parameters "passed" to
>opcodes? + what each opcode does?

yes, lopcodes.h

>* The number after CLOSURE tells the function number (local to this
>function) in the source file (0 being the first (delay), and 6 being
>LIFE)?

yes.

>* SETTABLE sets an item of a table (_CELLS:spawn , evolve and draw
>functions), are those functions "appended" to the list? (thus the order
>of SETTABLE determines what should be used with GETDOTTED and
>GETINDEXED?)

I don't understand what you mean here.

>* In the main SETGLOBAL 0 sets ALIVE to "*". in CELLS(w,h) - function at
>line 78 - GETGLOBAL 0 returns ARRAY2D? This looks wrong (since ARRAY2D
>is global 5?)
>-- 

The index in SETGLOBAL and GETGLOBAL refers to the string array, which is
local to each function. Globals are not numbered globally :-)
--lhf