Getting rid of irritating AS3 syntax

2 posts

Flag Post

Is there any way to have AS3 recognize c-style variable declaration syntax, like
int foo;

I tend to write code like that without even thinking about it, which means that when I’m done with a function I’ll go back and realize that I have to run the script through %s/int (.*);/var \1:int;/ again.

Flag Post

I would write a simple preprocessor (in C# or something) that is run prior to the mxmlc compiler. Maybe you can even call it mxmlc.exe and rename the original and shell it out after you preprocess all the .as files. Dunno… that’s my first thought.

I’d like it too as I switch between C# and AS3 a lot.