no.172.mal

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

MAL
33
字号
# Monet Mil to Mal compiler# Copyright (c) 2001-2004, CWI. All rights reserved.#Predefined code segment#The compiler can not guarantee an accurate compilation,#because MIL unlike MAL is a dynamically typed language.#A few guidelines to maximize usefullness.#- make the type of variables explicit, in particular 'nil'#- upon advice of M2m to remap identifiers, change it in your program directly#use the "mil_schema" for additional support routines#	io.print("# this used to hang because the no longer persistent\n");#	io.print("# bat got the BBPUNLOADING status but can only be done\n");#	io.print("# with refs()==0 and lrefs()==0 \n");#	io.print("");	abat := bbp.new(nil:int,nil:int);#	io.print("var abat := bat(int,int);");	aa_a := persists(abat,true);#	io.print("abat.persists(true);");	ba_a := commit();#	io.print("# met of zonder 'abat := nil;'\n");#	io.print("");	ca_a := getName(abat);	t_3 := bbp.new(ca_a);#	io.print("var t_3 := bat(bbpname(abat));");	da_a := persists(t_3,false);#	io.print("persists(t_3,false);");	ea_a := commit();#	io.print("## Hang:\n");	fa_a := bat.print(t_3);#	io.print("");	ga_a := clients.quit();#Identifer 'bbpname' mapped to 'getName'

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?