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?

1

1 Answer 1

4

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

Sign up to request clarification or add additional context in comments.

2 Comments

Has this been ported to 2.9.x? Last time I checked I was unable to find binaries or compile the code...
I haven't checked it for 2.9.x. So don't know.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.