Jump to content

Runtime evaluation: Difference between revisions

m
→‎{{header|Java}}: Added comment
(Added Java implementation)
m (→‎{{header|Java}}: Added comment)
Line 695:
}
}.loadClass(className);
 
// Invoke a method on the thing we compiled
clarse.getMethod(methodName).invoke(clarse.newInstance());
 
}catch(ClassNotFoundException | InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException x){
throw new RuntimeException("Run failed: " + x, x);
Line 707 ⟶ 710:
at Evaluator.eval(Evaluator.java:33)
at Evaluator.main(Evaluator.java:21)</pre>
 
=={{header|Lasso}}==
"Sourcefile" when executed has access to all variables and other data that would be available in scope to an included file.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.