小编Min*_*ran的帖子

什么是符号表以及它如何集成到可执行文件中?

当我尝试调试可执行文件时:

(gdb) break +1
No symbol table is loaded.  Use the "file" command.
Run Code Online (Sandbox Code Playgroud)

这究竟是什么意思?

符号表是否附加到可执行文件?

gdb symbol-tables executable-format

16
推荐指数
2
解决办法
3万
查看次数

为什么以下Scala函数被称为闭包?

对于以下问题:http://pastie.org/4825115,这是我的代码:http://pastie.org/private/n22zohyshn2ymqrbrb3g

def randList(len: Int, n: Int): List[Int] = len match {
  case 0 => List()
  case len => scala.util.Random.nextInt(n) :: randList(len-1, n)
}
Run Code Online (Sandbox Code Playgroud)

但我不知道为什么randList被称为闭包.

closures scala

3
推荐指数
1
解决办法
7873
查看次数

标签 统计

closures ×1

executable-format ×1

gdb ×1

scala ×1

symbol-tables ×1