1

I woud like my application to execute external scripts written in a Scala-based DSL i've developed. That's why I need something like this to work:


...
val a = evaluate("~/myextcode.scala")
...

myextcode.scala:


return 123

Can I reach some thing like this in Scala?

Ivan
  • 63,011
  • 101
  • 250
  • 382

1 Answers1

4

You can do that with Eval from twitter util. Check its Scaladocs here.

missingfaktor
  • 90,905
  • 62
  • 285
  • 365