What does #pragma strict do. Here is an example:
http://www.unifycommunity.com/wiki/index.php?title=DontGoThroughThings
What does #pragma strict do. Here is an example:
http://www.unifycommunity.com/wiki/index.php?title=DontGoThroughThings
It prevents Javascript from using dynamic typing. If you try, you get a compiler error.
–Eric
Which is good, since dynamic typing is slower than strict, though how much depends on the circumstances (IIRC).
Yep, but if I’m writing functions that aren’t called often, then I’ll leave “#pragma strict” off, since trying to avoid dynamic typing can occasionally be annoying, and the performance difference won’t be noticeable in this case.
–Eric