- Home /
should #pragma strict be used for mobile
i have a habit of declaring #pragma strict at the top of my js so that the inline editor would be more strict about variable typing and such... But, is #pragma strict actually not desired for mobile? Why not?
Comment
Best Answer
Answer by Eric5h5 · Jan 23, 2012 at 05:42 AM
You don't have a choice, #pragma strict is always used for mobile.
Sometimes I use #pragma downcast - and that still compiles for mobile
And? #pragma downcast doesn't remove #pragma strict or anything, all it does is remove warnings (not errors) that are generated by downcasting.
Nope, as I said it doesn't remove #pragma strict, it just removes warnings generated by downcasting.