Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Local Variable Problems

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Mr B




Joined: 20 Mar 2003
Posts: 382

PostPosted: Thu Oct 21, 2004 6:18 pm    Post subject: Local Variable Problems Reply with quote

This isn't a post asking for help, per se. But I noticed some...odd compiler behaviour, and I wanted to know if anyone knows more about it than I do.

When I declare a local variable in a script, but do not use it, the compiler alerts me to the fact, but compiles anyway.

However, once every 3 million years (or thereabouts) the compiler flips out and gives error messages. From then on it will give me the error message, even if I delete the entire script and start over again with completely different names (even for the script).

Once I actually used the variable in the script, the compiler was fine again.

So it would seem that I just shouldn't declare local variables without using them.

However, I'm worried that this isn't the whole picture. The fact that the compiler did this worries me. Does anyone know if there are more side effects to this behaviour than I am aware of? Because I'm working on a Halloween game, I don't have much time to deal with compiler freakiness.

Thanks in advance.
Back to top
View user's profile Send private message
Sephyroth
Renegade Rebel Redmage
Class A Minstrel



Joined: 04 Feb 2003
Posts: 644
Location: Schmocation

PostPosted: Thu Oct 21, 2004 7:06 pm    Post subject: Reply with quote

Do you use HSSEd? It has an option to "ignore minor errors" when it compiles a script.
_________________
im realy ded Sad...
Back to top
View user's profile Send private message Send e-mail AIM Address
Mr B




Joined: 20 Mar 2003
Posts: 382

PostPosted: Fri Oct 22, 2004 11:18 am    Post subject: Reply with quote

I sure do use it. But I don't know if I have that setting on. I'll check it out. Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group