As you all know, Vector support type checking by added Type parameter.
var v:Vector.<String> = new Vector.<String>();
I wonder if I am able to cr开发者_StackOverflow中文版eate a custom class that have Type parameter, something like this
var myClassInstance: MyClassDefinition.<String>;
Thank you.
Harry.
ActionScript doesn’t (yet) support generics. Vector is a special case with support hard-coded into the compiler.
See also: Why doesn't ActionScript have “generics”?
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论