--
您收到此邮件是因为您订阅了 Google 网上论坛的“Scala中文社区”论坛。
要向此网上论坛发帖,请发送电子邮件至 sca...@googlegroups.com。
要取消订阅此网上论坛,请发送电子邮件至 scalacn+u...@googlegroups.com。
若有更多问题,请通过 http://groups.google.com/group/scalacn?hl=zh-CN 访问此网上论坛。
比如:
var a = 2
var v = 1
v match {
case a => println(a) // 输出 1
}
v match {
case `a` => true // 匹配不成功, 因为 a != v
}
2010/2/6 Xuefeng Wu <ben...@gmail.com>: