call00.mal

来自「一个内存数据库的源代码这是服务器端还有客户端」· MAL 代码 · 共 27 行

MAL
27
字号
# 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 + =
减小字号Ctrl + -
显示快捷键?