Setting package in Scala REPL

故事扮演 提交于 2019-11-30 20:49:19
Gabriele Petronella

Simply put, you cannot.

Each command in the scala REPL is wrapped into a newly generated package, as explained here.

Also, there was a ticket asking package { } support in the REPL, but it was dismissed as :paste -raw was considered enough for the purpose.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!