有没有办法直接在erl中使用记录?无论我尝试什么,它总是说它无法找到记录.我正在尝试进行mnesia交易,没有我的记录,我不能走得太远.非常感谢任何帮助 - 谢谢!
Chr*_*ian 13
是的,使用help()并在shell中找到这些命令.
rd(R,D) -- define a record
rf() -- remove all record information
rf(R) -- remove record information about R
rl() -- display all record information
rl(R) -- display record information about R
rp(Term) -- display Term using the shell's record information
rr(File) -- read record information from File (wildcards allowed)
rr(F,R) -- read selected record information from file(s)
rr(F,R,O) -- read selected record information with options
Run Code Online (Sandbox Code Playgroud)
这些是shell中的一个聪明的黑客,它们允许您在编译时加载模块中使用的记录定义.使用rr命令从模块加载它.
请记住,这些仅适用于要使用的交互式shell.
| 归档时间: |
|
| 查看次数: |
1656 次 |
| 最近记录: |