0

When I check the scala doc for Actor react method, I see: See the companion object's react method. Is this something I can only know runtime? Or how do I find out who the campanion object is?

Note: I know campanion objects are the object with the same name of the corresponding class. So just looking to find out what's going on in this particular case.

Thanks.

4

1 回答 1

1

Paulp 在运行时做了一些实验来实现这一点,请看一下这个线程: https ://groups.google.com/d/topic/scala-language/b9oYVIX8O2c/discussion

于 2013-02-10T12:43:14.480 回答