Runtime Exceptions And Types

In ActionScript 2.0, type annotations were primarily a developer aid; at runtime, all values were dynamically typed. In ActionScript 3.0, type information is preserved at runtime, and utilized for a number of purposes. The Flash Player performs runtime type checking, improving the system’s type safety. Type information is also used to represent variables in native machine representations, improving performance and reducing memory usage.

단순히 개발자의 코드 가독성을 위한 도구였던 데이타 타입 설정이 As3.0 에서는 진정한 데이타 타입으로서 기능하게 되었다. 컴파일 타임에서의 데이타 타입의 체크에서 끝났던 것이 이제는 런타임에서도 타입체크가 가능하다.

이로써 실시간 예외처리도 가능해졌다. 플래시에서 가능 취약했던 부분인 런타임 디버깅이 비약적으로 발전했다. 이제보니 플래시가 스크립트 언어라고 하기엔 너무 커진것 같다는 생각이 든다..^^

0 Responses to “Runtime Exceptions And Types”


  • No Comments

Leave a Reply