📄 call00.mal
字号:
# the base experiment to execute a string# if we can convert a MAL function to a string# it can be shipped for remote execution.function tst(i:int,s:str):bit; j:= i+1; io.print(j);# ignore comments format:= "hello %s\n"; io.printf(format,s); return tst:=true;end tst;# there should be only one definitiond:= inspect.getSignature("user","tst");io.print(d);user.tst(1,"world");m:=inspect.getSource("user","tst");io.print(m);#Call the string derived from definitionlanguage.call(m);# now we should have two definitionsd:= inspect.getSignature("user","tst");io.print(d);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -