Hello ClearScript,
is there any option for a bit more modularization? As far as I can see, Compile, Evaluate and Execute are additionaly so that with each call the JavaScript Code is a bit bigger. What I want is a bit more separation for pieces of code, like
I guess I may use another instance of the script engine to achive this, but it might be to expensive.
Best regards,
Torsten
P.S. What does ExecuteCommand other then Execute or Evaluate? Is the return value the only difference?
is there any option for a bit more modularization? As far as I can see, Compile, Evaluate and Execute are additionaly so that with each call the JavaScript Code is a bit bigger. What I want is a bit more separation for pieces of code, like
var compiledscript = engine.Compile(modulescript);
...
engine.Execute(compiledscript, " some java script code");
The second parameter relates to the compiled script and is only valid for that. I guess I may use another instance of the script engine to achive this, but it might be to expensive.
Best regards,
Torsten
P.S. What does ExecuteCommand other then Execute or Evaluate? Is the return value the only difference?