Rafal Kupiec
ab8bf48485
The build was successful.
Details
There are several changes in this commit: * first of all constants declared by 'const' statement should be local (declared in current scope / frame), * constants are declared by using OP_DECLARE instruction, * OP_LOADC browses both global and local constants container, * PH7_VmRegisterConstant() allows both global and local declarations. Since this commit, there are 3 kinds of constants: 1) global 2) local (in loop, closure, method) 3) class members. Actually there is no way to declare a global constant except the built-in constants. |
||
---|---|---|
.. | ||
lib | ||
api.c | ||
builtin.c | ||
compiler.c | ||
constant.c | ||
hashmap.c | ||
lexer.c | ||
memobj.c | ||
oop.c | ||
parser.c | ||
vfs.c | ||
vm.c |