minor changes
This commit is contained in:
parent
2e7e1c2817
commit
e277f8db56
@ -652,7 +652,7 @@ function parseManager:compile(name,ctype,data)
|
||||
-- self:pushError("You cannot create a method with the same name as a standard method or duplicate method names!",name)
|
||||
-- end
|
||||
self.methods[name]=function(...)
|
||||
self:Invoke(name,{},...)
|
||||
self:Invoke(name,...)
|
||||
end
|
||||
self.mainENV[name]=self.methods[name]
|
||||
table.insert(self.chunks[name],{
|
||||
|
||||
@ -9,6 +9,8 @@ ENABLE leaking
|
||||
test=2*100
|
||||
"test = $test$"
|
||||
c=5
|
||||
test2 = func(2, 3)
|
||||
"Function calls work :D $test2$"
|
||||
::HERE::
|
||||
a,b="sdf",true
|
||||
"a,b,c = $a$ $b$ $c$"
|
||||
@ -28,5 +30,9 @@ ENABLE leaking
|
||||
"Done!"
|
||||
QUIT()
|
||||
}
|
||||
[func:function(a,b)]{
|
||||
"$a$ $b$"
|
||||
return a+b
|
||||
}
|
||||
|
||||
-- (count==stop and name=="bob") ? GOTO(end) : GOTO(loop)
|
||||
Loading…
x
Reference in New Issue
Block a user