Posts Tagged syntax

Declaring Vectors

The differences between Vector and Array have been quite interesting since Vector was introduced in Flash Player 10. Until just recently I didn’t know that there was special syntax for declaring a Vector akin to Array's special a = [1,2,3,4,5] trick. This got me thinking about the various ways one can declare a Vector and, of course, how they’re implemented in bytecode and what the speed differences, if any, are. Read on for some nitty gritty about how you declare Vectors in AS3.

Read the rest of this entry »

Tags: , , , , , ,

22 Comments

Flexible If Syntax

This article is sort of a follow-up to my article on Flexible Loop Syntax. This was reported to my by a coworker who spotted the anomaly. I guess he had done with if the same sort of thing that I had done with for. Read on for a little insight into how the comma operator interacts with the if statement.

Read the rest of this entry »

Tags: , , , ,

4 Comments

Spot The Problem

You could probably do this in most languages and it might be hard to spot. See for yourself.

Read the rest of this entry »

Tags: ,

2 Comments