Checkbox to allow Case-(in)Sensitive source

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Checkbox to allow Case-(in)Sensitive source

Post by Psychophanta »

Add a checkbox in the preferences to contemplate Case-Sensitive source code. :roll:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

No BASIC is case-sensetiv.
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

GPI wrote:No BASIC is case-sensetiv.
??? Eindeutig zweideutig ???
No, BASIC is case-sensetiv.(Nein, BASIC ist case-sensetiv)
No BASIC is case-sensetiv.(Kein BASIC ist case-sensetiv)
;)
bye,
Daniel
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

GPI wrote:No BASIC is case-sensetiv.
PureBasic > Basic
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

And how exactly should we handle all the code posted here? One code with Case-Sensitivity on the other is case-insensitive -> confusion is programmed.
<°)))o><²³
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

No BASIC is case-sensetiv.(Kein BASIC ist case-sensetiv)
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

BBC BASIC is case sensitive. Argh! Horrible.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

freedimension wrote:And how exactly should we handle all the code posted here? One code with Case-Sensitivity on the other is case-insensitive -> confusion is programmed.
The source code should have at the end one more line; something like:
; CaseSensitiveSyntax=On

So then, if the CheckBox is enabled (Case-Sensitive ON) then this line should be added to the source code when saved, else don't.
DoubleDutch wrote:BBC BASIC is case sensitive. Argh! Horrible.
Then, DoubleDutch would uncheck the CheckBox :wink:
GPI wrote:No BASIC is case-sensetiv.(Kein BASIC ist case-sensetiv)
And, as we can see, GPI would uncheck it too.

Well, this feature should seem to have no much importance, but for sciencific programming is essential.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

btw: I found it a very bad programming style, when somebody use this names

Code: Select all

AberHallo
aberhallo
AbErHaLlO
for diffrent variables...

Edit:

For C++ make case-sesetive sense, because there are no marks for constants and variables (thats why normaly all C-Constants are writte in UPPER CASE). But in PureBasic you must add a '#' in the front of the name to mark a constant, so case sensetiv is not really needed.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

GPI wrote: For C++ make case-sesetive sense, because there are no marks for constants and variables (thats why normaly all C-Constants are writte in UPPER CASE). But in PureBasic you must add a '#' in the front of the name to mark a constant, so case sensetiv is not really needed.
Well, sorry, I think that's an insipid argument :roll:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Then, DoubleDutch would uncheck the CheckBox
In the old days there was no such thing as "checkboxes" ;)

In any event, maybe it should be that you should have to tick the "case-sensitive checkbox", to maintain compatibility! ;)

-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

i think this discussion has been going on for a long time without any real results... pb is currently not case sensitive, and probably it will stay that way

(and hey, that's the way i like it :-))
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

That's because your programs are oriented into a narrow and limited line.

Well, I disagree, that's all :D
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
aaron
Enthusiast
Enthusiast
Posts: 267
Joined: Mon Apr 19, 2004 3:04 am
Location: Canada
Contact:

Post by aaron »

case sensitive = monster pain in the *ss when coding/debugging.

That's about all there is to say. There is no good reason to have variables with the same name but different cases. None.
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

Psychophanta wrote:That's because your programs are oriented into a narrow and limited line.
I don't get it, what has case sensitivity to do with the programs I'm writing and how does it affect the result???

Also, bring forward only one reason why case sensitive identifiers are badly needed (because you are used to from other languages doesn't count btw ;) )
<°)))o><²³
Post Reply