Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How would you implement generics like Vector.<T>?

So, ActionScript 3 has generics with the Vector class (Vector.). I have not seen any other class that uses generics like this.

If you were to implement Vector. yourself, how would you do it?

like image 889
Brian Genisio Avatar asked Oct 14 '22 21:10

Brian Genisio


1 Answers

If you are after generics then you are best off to look at Haxe. It is very similar to ActionScript 3 and compiles to a swc or swf.

like image 163
Allan Avatar answered Oct 18 '22 02:10

Allan