https://kotlinlang.org logo
#scripting
Title
# scripting
e

elect

07/14/2022, 8:04 AM
is it possible to pass arguments to the script class (that with
@KotlinScript
)? Looking at the code I don't think so 😕
I was wrong!
Copy code
return BasicJvmScriptingHost().eval(toScriptSource(), compilationConfiguration, ScriptEvaluationConfiguration().with {
    constructorArgs("argoment")
})
👍 1
3 Views