-
或者这样设计的考虑是什么? |
Beta Was this translation helpful? Give feedback.
Answered by
livelybug
Nov 1, 2022
Replies: 3 comments 1 reply
-
一个 script 块必须在开头声明use,然后是constants的内容,最后声明主函数 function。主函数的名称可以是任意的(也就是说,它不一定命名为 main),是script block中唯一的函数,可以有任意数量的参数,并且不能有返回值 |
Beta Was this translation helpful? Give feedback.
0 replies
-
谢谢。我把问题扩展一下: 假如MOVE标准规定一个 script 块里可以包含两个或两个以上的function, 这样的规定会有什么问题吗? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Reply 好像不能作为答案 :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
livelybug
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reply 好像不能作为答案 :)
只好这样: 答案是 #159 (reply in thread)