Perpendicular Accessibility notes – Screen readers and Flash

Strictly typed arrays in MTASC

January 31st, 2006

This is from the MTASC homepage, but I managed to overlook it until now… So I’ll echo it just incase my two readers didn’t know about it.

MTASC introduce a syntax extension that enables you to strictly-type your Arrays while still keeping AS2 compatibility :

<strong>var x : /*String*/ Array;</strong>

This variable is declared as an Array containing strings. All Array accesses for reading and writing will be then checked as if Strings where stored in the Array. The additional checks are made during compilation, nothing will change at runtime. Please be careful not to put spaces between /* and */. Also please be careful when initializing your Array since you can still use any Array to initialize it.

can you Digg it? can you Digg it? is it del.icio.us? is it del.icio.us?

Category: General

Leave a Comment

You must be logged in to post a comment .

Trackback this post  |  Subscribe to the comments via RSS Feed

Clicky Web Analytics