Weird mysterious script errors after Unity 3 conversion

Hi there,
I have been trying to move my project over to unity 3 and it’s been hard but most of the issues I have been able to resolve. But i have no idea about this,

I have this script that worked fine in 1.6 but now in 3 because of a strange JS issue, you have to type #pragma strict at the top of the script, that’s fine for me as the whole thing was written with strict typing. But for some reason, when I put it there i get a couple of hundred errors from other unrelated scripts, with things that they just should have error from and have been fine so far.

Does anyone know why the #pragma strict would cause such a mess with unrelated scripts?
I’m really banging my head against the wall here and loosing days trying to figure this conversion out.
please help me
thanks
Pete

Oh man, i just realized there are a bunch of things I haven’t typed strict but they never gave me issues before. weird.

could someone help me with this though, here’s an example of a line of code that I’ll have to convert
RagDollInstance = Instantiate (RagdollPrefab, SwapPos, Quaternion.identity);

but how would I convert that to strict typing? I tried this but it didn’t work.
var RagDollInstance : GameObject = Instantiate (RagdollPrefab, SwapPos, Quaternion.identity);

http://answers.unity3d.com/questions/23415/how-to-use-as/23417#23417

Thanks Jessy!
I still don’t understand why i never had this problem in 1.7
So should I put #pragma strict on every script when building for iphone?

For iOS, no. It’s already used by default there (unless something has changed with 3.0’s unified Editor, but I haven’t heard anything about that.)

As for why the behavior is different now, I suspect it has to do with the overhaul that UnityScript got for 3.0, which results in performance gains, but requires some adjustment. (Nothing like this happened when I switched versions, but I use C#.)

Cool , well I’ll just go through and fix them up, see what happens. It’s probably for the best that I give my scripts a little dusting off anyway.
Thanks for the help!