tst1004.mal
来自「一个内存数据库的源代码这是服务器端还有客户端」· MAL 代码 · 共 30 行
MAL
30 行
# the first of a series of BBP test casesio.print("Start test");bbp.open();b:= bat.new(:int,:int);bat.insert(b,1,2);bbp.deposit("myfirstbat",b);c:= bbp.take("myfirstbat");catch MALException:str; io.print(MALException);exit MALException;io.print("FIRST ROUND");io.print(c);bbp.close();# at the end of the session, the BBP should have discarded# the temporary bats of the userbbp.open();io.print("SECOND ROUND");y:=bbp.getObjects();io.print(y);v:= bbp.take("myfirstbat");catch MALException:str; io.print(MALException);exit MALException;io.print("got myfirstbat?");io.print(v);x:= bbp.getNames();io.print(x);bbp.close();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?