| Issue 34: | hScript - Anonymous Functions and Null-Pointer | |
| 1 person starred this issue and may be notified of changes. | Back to list |
package;
import haxe.io.StringInput;
import hscript.Interp;
import hscript.Parser;
class Main {
public static function main ():Void
{
var script =
'
var f = function (a, b) { return a + b; };
f(1, 1);
';
var parser:Parser = new Parser();
var expr = parser.parse(new StringInput(script));
var interp:Interp = new Interp();
interp.execute(expr);
}
}
This script produces an endless loop with cpp.
Running in debug mode prints the following error:
Critical Error: Null Object Reference
Jul 23, 2010
#1
aboutwh...@googlemail.com
Jul 26, 2010
Fixed on haxe/HXCPP svn
Status:
Fixed
|