| Issue 58: | cpp.io.File.write gives error when run | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Attached file gives example code. Program compiles fine, but when run gives the following error: Terminal error type not string, File .//libs/std/File.cpp, line 78 This is part of a larger code (WavPack audio decoder) that compiled/run with no issues with haxe 2.04 Running haxe 2.06 and latest hxcpp. Running on Ubuntu linux.
Aug 19, 2010
#1
adn...@gmail.com
Sep 10, 2010
Thanks for this fix - I've put into haxe svn , as well as added a little solution for next version of hxcpp.
Status:
Fixed
Sep 24, 2010
is it OK?
Jan 17, 2011
It is still not working.
2.06, Windows.
Workaround (from File.hx):
class FileWriteWorks
{
private static var file_open = cpp.Lib.load("std","file_open",2);
public static function main()
{
var fout = new FileOutput(file_open('1.txt',"w"));
}
}
|