例如.DEF testfunction(.apple,.orange).Result=.apple+.OrangeReturn .Result.END
whatis=testfunction(3 ,2)
什么是 5。我在用户定义函数中犯了一个语法错误。
你能告诉我用户定义函数的功能是什么吗?
该代码不是 Kawasaki 代码...
Alexandru 是正确的。
但是,Kawasaki 只是使用 CALL 指令调用各个程序(子程序),因此它们可能是“松散地”指可能的函数,因为您可以使用参数调用子例程。
.PROGRAM main();whatis = 0CALL addvals(whatis,3,2)PRINT whatis.END
.PROGRAM addvals(.a, .b,.c).a = .b+.cRETURN.END
.PROGRAM testfunction(.apple,.orange,.Result).Result=.apple+.OrangeReturn.END.PROGRAM main.apple = 3.orange = 2CALL testfunction(.apple,.orange,.Result)类型 2:.Result.END