Jonathan Valliere a écrit :
> Sam,
> 
> To continue on your Vector / CLR arrays conversation.  Adobe should 
> support CLR typed static arrays and have a separate Vector -or- Stack 
> type for dynamic lengths.  Regardless of performance, CLR typed arrays 
> force better programming practices and simply make debugging easier.  It 
> is disheartening to see " arr.pop() as mytype or mytype(arr.pop())" all 
> over my code just so i can properly compile, debug my app against the 
> true data type expected from the array.

Please note that there are two separate things :
  - fixed size "true" arrays for performances
  - typed arrays "generics" for typing

While the first feature requires some VM support, the second can be 
entirely handled by the programming language without any extra VM 
support, by simply generating casts at the places they are needed.

That's how Java did when they introduced generics and that's what haXe 
is doing as well for Flash9 support. Flash <= 8 does not require any 
cast since the bytecode is dynamicaly typed anyway.

Nicolas

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to