- Home /
What is #pragma strict meaning?
I'm a newbie in javascript scripting and everytime i meet #pragma strict syntax i probably got confused. What's that meaning? Why there are some scripts that doesn't use that syntax? Thanks!
Answer by Ramsey111 · Dec 08, 2015 at 05:32 PM
From what I've seen #pragma strict just makes it so you have to be more careful about naming variables it makes it harder for you to accidentally write something that would cause an error that the compiler won't catch. If you use it (which you probably should) You'll have to fully declare variables and not leave room for the compiler to guess what you mean.
Keep in mind I'm pretty new too so I'm not entirely sure either, if any one more knowledgeable about the subject sees this feel free to crap all over my answer and write something better.
Your answer
Follow this Question
Related Questions
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Setting Scroll View Width GUILayout 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
press e to speek -1 Answers
Error Unexpected token } 1 Answer