Update ringlibs/naturallib/common/naturalbase.ring
@@ -10,7 +10,6 @@ Class NaturalBase
nCommandsCount = 0
aClassMethods = []
-
aBraceMethods = []
func BraceStart
@@ -20,6 +19,7 @@ Class NaturalBase
call cMethod()
}
}
+ # Prepare lists for Class Methods and Brace Methods
aClassMethods = methods(self)
for cMethod in aClassMethods {
if left(cMethod,14) = "braceexpreval_" {
@@ -28,8 +28,8 @@ Class NaturalBase
}
func BraceExprEval Value
- for cMethod in aBraceMethods {
if isNumber(Value) or isString(Value) {
+ for cMethod in aBraceMethods {
call cMethod(Value)
}
}
@@ -63,4 +63,4 @@ Class NaturalBase
BraceExprEval(vValue)
func Expr nIndex
- return CommandData()[:aExpr][nIndex]
+ return aCommandsStack[nCommandsCount][2][:aExpr][nIndex]
