Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: SSH on Wed 05/04/2006 14:47:04

Title: SUGGESTION: Case sensitivity hints for dummies
Post by: SSH on Wed 05/04/2006 14:47:04
When a struct member is referenced in AGS that doesn't exist, could AGS put in something in the error message that does a caseless search on struct members and says something like "value is not a public member of listbox. Did you mean listbox.Value?" as I've seen quite a few people get this wrong...?
Title: Re: SUGGESTION: Case sensitivity hints for dummies
Post by: Radiant on Wed 05/04/2006 14:57:38
Good point. Also, some structs have a lowercase and an uppercase variant (for instance, character.Loop and character.loop) and it's not necessarily clear what the difference is.
Title: Re: SUGGESTION: Case sensitivity hints for dummies
Post by: on Wed 05/04/2006 14:59:55
Could AGS not capitalise some of these things in some instances? That'd be so helpful.
Title: Re: SUGGESTION: Case sensitivity hints for dummies
Post by: monkey0506 on Wed 05/04/2006 17:18:10
well For One Thing, character[ x ].loop Is A Deprecated Integer (int) To Hold The Integral Value Of The Character's (Character Determined By The Index 'x') Loop.  Character.Loop Is Exactly The Same Thing.  only The 'l' Is Catipillarized.  and Can Be Accessed Using A Character* (Pointer-To-Character).  :P

the Capitarlization Is Used By All Data Members Of Built-In Types Of wMGS (Except For Those Previously Implemented Members Such As character.x/y and mouse.x/y (And Possibly Some Others) Which Are Not UpperCasded.
Title: Re: SUGGESTION: Case sensitivity hints for dummies
Post by: Pumaman on Wed 05/04/2006 19:14:52
Although something like this would be possible, autocomplete should mean that you don't really make the mistake. Perhaps some generic text like "are you sure you capitalized the text correctly?" would be useful.
Title: Re: SUGGESTION: Case sensitivity hints for dummies
Post by: SSH on Wed 05/04/2006 21:43:01
Well, the threads in Beginners Tech would suggest that autocomplete doesn't stop n00bs like.... m0ds.... getting it wrong ;)
Title: Re: SUGGESTION: Case sensitivity hints for dummies
Post by: Radiant on Wed 05/04/2006 22:38:59
How about, just like the option that forces you to use new-style strings, creating an option that forces you not to use the lower case versions? IIRC char[].view == (char[].View - 1) which at any rate is confusing.
Title: Re: SUGGESTION: Case sensitivity hints for dummies
Post by: Pumaman on Thu 06/04/2006 20:22:46
"Enforce object-based scripting" already does this.