Paul Robertson's words, punctuated

Thoughts on development, user-centered design, code, etc. by Paul Robertson

AS3 pseudo-enums, strongly typed

Since I’ve done most of my “major” programming in C#, one thing I’ve missed in ActionScript is the built-in enumerations which are convenient to use for sets of related constants.

I’ve come up with a couple of ways to create pseudo-enumerations, and Sho Kuwamoto just wrote a post describing his approach to pseudo-enums – which happens to be pretty much the same as my favorite approach to this. (So he saved me the trouble of having to write about it =)