My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 34: hScript - Anonymous Functions and Null-Pointer
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jul 2010


 
Reported by aboutwh...@googlemail.com, Jul 23, 2010
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
Tested with current SVN Versions of haxe and hxcpp.
Jul 26, 2010
Project Member #2 gameh...@gmail.com
Fixed on haxe/HXCPP svn
Status: Fixed

Powered by Google Project Hosting