解释器限制

该表列出了 Gambas 解释器限制。

请注意,某些限制是不可变的,即如果不重写解释器就无法更改它们。一些限制是可以更改的,即只需更改源文件中常量的值并重新编译解释器即可。

Limit Value Can be changed?
Maximum number of parameters for a function 63 No
Maximum number of parameters for a subroutine 63 Maybe up to 127
Maximum number of parameters for an operator 63 No
Maximum level of expression imbrication 255 Yes
Maximum number of syntax patterns in an expression 1023 No
Maximum length of a symbol 255 No
Maximum number of constants in the same class 65536 No
Maximum number of static or dynamic symbols in the same class 2048 No
Maximum number of functions in the same class 2048 No
Maximum number of different classes used in the same class 2048 No
Maximum number of extern declarations in the same class 256 No
Maximum number of events declarations in the same class 254 No
Maximum number of unknown class symbols in the same class 65536 No
Maximum number of array declarations in the same class 32768 No
Maximum number of local variables in a function 127 No
Maximum level of control structures imbrication 32 Yes
Maximum number of dimensions in an array 8 Yes
Maximum level of controls imbrication in a form 32 Yes
Maximum number of possible comparisons in one CASE instruction 32 Yes
Maximum number of breakpoints 255 Yes
Maximum level of class inheritance 16 Yes
Maximum length of an error message 511 Yes
Maximum number of fields in a structure 255 Yes