Mimicking typedef in ActionScript? -


I'm working on some action script codes that use the same-on-the-interchangeable types (e.g., position-in- Pixel, internal-state, line-and-column-position) and I'm trying to come up with a naming scheme to reduce the complexity.

In addition to this, I still do not know what is the best format for "internal status" - there are all the advantages and disadvantages to using int, uit and numbers.

Normally I solve it with Type Type:

  typing float pixel piece; Typedef int internalPos; Typedef int rowColPos;  

Is there a way to get the same functionality in the Action Script?

If you are using Flex or other command line compiler to build your project, then You can add a pass through an external preprocessor to your creation process.

Type protection is not provided, but otherwise appears to do as you wish.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -