*blog... kind of... *rss
Bizarre Actionscript #1
7 commentsNever create/use a variable/object with "3d" in the begining of the name ("3dXX"). It won't work.
Actionscript follows ECMA4 specs mostly so in theory any variable starting with a number should fail I think.
February 6th 2006, Andy
Thanks!
Nice to know that!
Nice to know that!
now that i remember that's because of how the compilers are built... everything which begins with a number is a number and will be evaluated like that... anything else might be considered
I see, I guess is for optimizations then...
well know that you are curious about it... compilers have a series of possible status when evaluating the input tokens, so they need to distinguish if each token is a variable, a reserved word or whatever, and if the syntax is ok too.
And that's what a parser does :D
Checks the type of each token and verifies if it is in a proper position.
And that's what a parser does :D
Checks the type of each token and verifies if it is in a proper position.
Como nomenclaturas hay millones, te explico la mia para las variables:
- si es un númerico será nVariable
- si es un string será sVariable
- si es un objeto será oObjeto
- si es un array será aArray
- si es "booleano" será bVariable
... creo que así me evito algunos errores en los nombres y a veces hasta comprendo mi codigo despues de meses... pero solo a veces... :D
- si es un númerico será nVariable
- si es un string será sVariable
- si es un objeto será oObjeto
- si es un array será aArray
- si es "booleano" será bVariable
... creo que así me evito algunos errores en los nombres y a veces hasta comprendo mi codigo despues de meses... pero solo a veces... :D
Notación humpr3yhúngara 8)
*profile

traditional id: Ricardo Cabello Miguel
based in: London, UK
more: github, twitter, twitpic, soundcloud and flattr
*post nav
That sofa has to go!
Safari vs Flash #1
Winamp 5.2 reads your iPod
!important (link colour with FCKeditor & TinyMCE)
Common GUI design mistake
Bizarre Actionscript #1
Steamboy
Chris, say hello!
textile, bbcode.. bollocks!
AntiSPAM system, part2
Tibidabo: the obsolete funfair