Quantcast
Channel: Can a Scala script reference other uncompiled scala code in the same directory? - Stack Overflow
Browsing all 4 articles
Browse latest View live

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 Article


Answer 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 Article

Answer 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 Article

Can 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
Browsing all 4 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>