Scala script in 2.11
问题 I have found an example code for a Scala runtime scripting in answer to Generating a class from string and instantiating it in Scala 2.10, however the code seems to be obsolete for 2.11 - I cannot find any function corresponding to build.setTypeSignature . Even if it worked, the code seems hard to read and follow to me. How can Scala scripts be compiled and executed in Scala 2.11? Let us assume I want following: define several variables (names and values) compile script (optional improvement)