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 36: implements Generic not generating class files
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  gameh...@gmail.com
Closed:  Aug 2010


 
Project Member Reported by gameh...@gmail.com, Jul 26, 2010
import haxe.FastList;
class Tool
{
  static public function toFastList<A>(input:Iterable<A>):FastList<A>
  {
     var ret = new FastList<A>();
     for (i in input)
	  {
	     ret.add(i);
	  }
	  return ret;
	}
}

class Simple
{
   static public function main():Void
	{
	   var iterable = ["a","b","c"];
      trace(Tool.toFastList(iterable));
	}
}

Maybe for dynamic only?
Aug 11, 2010
Project Member #1 gameh...@gmail.com
This is not really valid syntax for fast-lists, when the lists implements generic.  There might be a workaround using the "using" syntax - I will have to have  a think about this.  It may be worth using a "slow" list on c++.  I think iteration will use "iterator", which uses dynamic, which removes most of the gains anyhow.
Status: WontFix

Powered by Google Project Hosting