| Issue 28: | inline methods causing errors with null values | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Simplest example to demonstrate the error:
--------------------------
package;
import neash.Lib;
class Main {
static inline function offender(obj:Dynamic) {
if(obj!=null) obj.value = 10;
}
static function main() {
offender(null);
}
}
-----------------------
hxcpp code for code generating error:
-----------------------
Void Main_obj::main( ){
{
if ((null() != null()))
null() = 10; // error here
}
return null();
}
-----------------------
i've never had such an issue before in C++ my compiler would always eliminate dead code before worrying about such things, so i don't know if this is simply microsoft's compiler being shit.
Jun 15, 2010
#1
lucadelt...@googlemail.com
Jul 29, 2010
Fixed on haxe SVN
Status:
Fixed
|