⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tst606.mal

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 MAL
字号:
# partial definition of the object space for MIL# it is subordinate to the MIL space dealing with persistent bats# CONST STORE_MEM   := 0; # CONST STORE_MMAP  := 1; # CONST STORE_COMPR := 2; module constants;#the variables introduced in main are retained as globalsfunction main():void;	STORE_MEM :=0;	STORE_MMAP :=1;	STORE_COMPR :=2;	const.deposit("STORE_MEM",STORE_MEM);	const.deposit("STORE_MAP",STORE_MMAP);	const.deposit("STORE_COMPR",STORE_COMPR);end main;# take uses the 'root' versions.function take(v:str):any_1;	io.printf("looking for %s\n",v);	w:= constants.take(v);	return w;end take;# release is overloaded for testing onlyfunction release(v:any_1):void;	BoxException:= "releasing a constant is forbidden";	raise BoxException;end release;# accept the definition of a new constantfunction deposit(v:any_1,name:str) address space_deposit;

⌨️ 快捷键说明

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