📄 tst202.mal
字号:
# GDK layer should produce exceptions rather then direct warnings# or ignoring.# a typical case is to try to rename an existing (persistent) bat b:bat[:int,:int]:= bat.new(:int,:int); bat.setName(b,"mybat"); #setPersistent(b); bat.setColumn(b,"first","second"); io.print(b); c:= bat.new(:int,:str); bat.setName(c,"mybat"); io.print(c); #setPersistent(c); io.print(c); io.printf("catched anything?\n");catch GDKerror:str; io.printf("Catched the renaming exception\n");exit GDKerror;#get rid of it again #destroy(b); #destroy(c);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -