Update NaturalLib - CreateTheTempClass()
@@ -12,10 +12,7 @@ class NaturalCommand
cKeyword = aPara[:Keyword]
fFunc = aPara[:Function]
- func SyntaxIsKeyword aPara
-
- Para2Attributes(aPara)
-
+ func CreateTheTempClass
cCode = "
oObject = new #{f1}.#{f2}
Package #{f1}
@@ -24,6 +21,13 @@ class NaturalCommand
cCode = substr(cCode,"#{f1}",cPackage)
cCode = substr(cCode,"#{f2}",cKeyword)
eval(cCode)
+ return oObject
+
+ func SyntaxIsKeyword aPara
+
+ Para2Attributes(aPara)
+
+ oObject = CreateTheTempClass()
cCode = " f1 = func { AddAttribute(self,:#{f1}) } "
cCode = SubStr(cCode,"#{f1}",cKeyword)
