continuations in Scala 2.8.1 and Eclipse

前端 未结 3 1954
故里飘歌
故里飘歌 2021-01-21 03:32

How can i start scala (or scalac) with the -P:continuations:enable flag in Eclipse I used import scala.util.continuations._; in my code , and need to enable the plugin.

3条回答
  •  没有蜡笔的小新
    2021-01-21 04:29

    Window -> Preferences -> Scala -> Compiler -> Standard

    add continuations:enable to P input box
    

    Window -> Preferences -> Scala -> Compiler -> Advanced

    add lib\continuations.jar to XPlugin
    

    Window -> Preferences -> Scala -> Compiler -> Build Manager sbt

提交回复
热议问题