Go Back   WowAce Forums > General > Lua Code Discussion
Lua Code Discussion You scared? Terrified. Mortified. Petrified. Stupefied... by [coding].

Reply
 
Thread Tools
Old 2 Weeks Ago   #21
highflight1985
Member
 
Join Date: Sep 2007
Posts: 30
Default Re: Can't Get SavedVariables to Work...

Quote:
Originally Posted by Torhal View Post
In your defaults, you are defining "optionA", yet your code checks for "OptionA".

Oiy!!! I HATE case-sensitive programming languages...as you can tell, I'm used to non-case sensitive languages like VB...

Anyway, is there a design environment program out there that is specifically designed for wow addon programming? It would be nice if an IDE could catch things like that rather than having to bug other addon programmers...
highflight1985 is offline   Reply With Quote
Old 2 Weeks Ago   #22
Farmbuyer
Senior Member
 
Join Date: Feb 2005
Posts: 494
Default Re: Can't Get SavedVariables to Work...

Quote:
Originally Posted by highflight1985 View Post
Oiy!!! I HATE case-sensitive programming languages...as you can tell, I'm used to non-case sensitive languages like VB...
Better start adjusting. All the non-toy languages I've ever encountered are case sensitive.

Quote:
Anyway, is there a design environment program out there that is specifically designed for wow addon programming?
There were some (AddOn Studio was one such, iirc), but I don't know if they've ever been updated. Also...

Quote:
It would be nice if an IDE could catch things like that rather than having to bug other addon programmers...
...none of them would "catch this" in any case. Decide on a capitalization scheme for your code and stick with it. Maybe C-style lower_caps_with_underscores has a particular meaning, and Pascal/Java-style UpperCamelCase has another specific meaning. Or use all a single style, whatever.
Farmbuyer is offline   Reply With Quote
Old 2 Weeks Ago   #23
Torhal
Moderator
 
Torhal's Avatar
 
Join Date: Feb 2008
Posts: 1,431
Send a message via ICQ to Torhal
Default Re: Can't Get SavedVariables to Work...

Quote:
Originally Posted by highflight1985 View Post
Oiy!!! I HATE case-sensitive programming languages...as you can tell, I'm used to non-case sensitive languages like VB...
Then start using underscores and stick with all lowercase, such as "option_a".
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of Revelation, Volumizer, and many other AddOns.
Torhal is offline   Reply With Quote
Old 2 Weeks Ago   #24
Tekkub
Wiki Master
 
Tekkub's Avatar
 
Join Date: Feb 2005
Posts: 4,854
Default Re: Can't Get SavedVariables to Work...

dot dot dot... are there even any programming languages out there besides VB that are case-insensative? I thought that was the universal standard...
Tekkub is offline   Reply With Quote
Old 2 Weeks Ago   #25
Torhal
Moderator
 
Torhal's Avatar
 
Join Date: Feb 2008
Posts: 1,431
Send a message via ICQ to Torhal
Default Re: Can't Get SavedVariables to Work...

Eiffel is case-insensitive.
Pascal is case-insensitive.
PHP is case-sensitive for variable names, case-insensitive for user-defined classes/functions and built-in constructs/keywords.

I'm sure there are other examples but, to be honest, most real-world programming languages are case-sensitive.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of Revelation, Volumizer, and many other AddOns.
Torhal is offline   Reply With Quote
Old 2 Weeks Ago   #26
Tekkub
Wiki Master
 
Tekkub's Avatar
 
Join Date: Feb 2005
Posts: 4,854
Default Re: Can't Get SavedVariables to Work...

Well I mean, it only makes sense anyway, programers are OCD after all...
Tekkub is offline   Reply With Quote
Old 2 Weeks Ago   #27
Farmbuyer
Senior Member
 
Join Date: Feb 2005
Posts: 494
Default Re: Can't Get SavedVariables to Work...

Quote:
Originally Posted by Torhal View Post
Eiffel is case-insensitive.
crap, forgot that one. good catch.
Farmbuyer is offline   Reply With Quote
Old 2 Weeks Ago   #28
egingell
Hero Member
 
egingell's Avatar
 
Join Date: May 2006
Location: Cenarion Circle
Posts: 805
Send a message via AIM to egingell Send a message via MSN to egingell
Default Re: Can't Get SavedVariables to Work...

Quote:
Originally Posted by Torhal View Post
Eiffel is case-insensitive.
Pascal is case-insensitive.
PHP is case-sensitive for variable names, case-insensitive for user-defined classes/functions and built-in constructs/keywords.

I'm sure there are other examples but, to be honest, most real-world programming languages are case-sensitive.
All functions and classes are case-insensitive in PHP, not just user-defined.
__________________
Bruce Lee killed Chuck Norris!
Don't call me a nerd. That is offensive to my people.
My Characters (yes, I have a guild with only me in it).
egingell is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:03 AM.