↧
Answer by Fox Fairy for Can a Scala script reference other uncompiled scala...
You can just put:load /path/fileat the first line in the file you are going to load.
View ArticleAnswer by timday for Can a Scala script reference other uncompiled scala code...
Maybe not exactly what you're looking for, but from the Scala REPL shell you can do:load hello.scala:load do.scalato achieve the same result:$ scalaWelcome to Scala version 2.9.1 (Java HotSpot(TM)...
View ArticleAnswer by pr1001 for Can a Scala script reference other uncompiled scala code...
Looking into on the fly compilation/embedding the compiler. Twitter's util-eval is one such example.
View ArticleCan a Scala script reference other uncompiled scala code in the same directory?
If I have two separate uncompiled scala files in the same directory as:// hello.scalaobject hello { def world() = println("hello world")}and:// do.scalahello.world()I get an error when running...
View Article
More Pages to Explore .....