Mercurial > hg > truffle
view graal/com.oracle.truffle.sl.test/tests/DefineFunction.sl @ 13853:f11d3d5248b5
Use UTF-8 encoding when compiling on the command line and for Eclipse projects
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Fri, 31 Jan 2014 16:36:02 -0800 |
parents | b16ec83edc73 |
children |
line wrap: on
line source
function foo() { println(test(40, 2)); } function main() { defineFunction("function test(a, b) { return a + b; }"); foo(); defineFunction("function test(a, b) { return a - b; }"); foo(); }