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 81: FastCell.h No such file or directory
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jan 2011


 
Reported by Andy.onthewings, Nov 18, 2010
At the bottom is the demo of the bug. Put everything in a single file(doesn't matter if they're separated or not).

It simply doesn't compile and an error is shown "...AnotherClass.cpp(7) : fatal error C1083: Cannot open include file: `haxe/FastCell.h`: No such file or directory". Tested using VC2010, hxcpp r254, haxe r3430.

Removing "implements haxe.rtti.Generic" on "FastCell", "FastListIterator" and "FastList" can workaround the issue. So I suppose there is problem on Generic.




import haxe.FastList;

class GenericBug 
{

	static public function main() 
	{
		new AnotherClass<Float>(123);
	}
	
}

class AnotherClass<T> {
	public var list:FastList<T>;
	
	public function new(t:T):Void {
		list = new FastList<T>();
		list.add(t);
	}
}
Jan 16, 2011
Project Member #1 gameh...@gmail.com
There is a bug in cpp because the FastList is not falling back to a dynamic implementation.  However, for maximum speed, your "AnotherClass" should also be rtti.generic, ie:
class AnotherClass<T> #if cpp implements haxe.rtti.Generic #end
and this should then work.
Jan 16, 2011
Project Member #2 gameh...@gmail.com
Fixed on SVN
Status: Fixed

Powered by Google Project Hosting