Case correction glitch

Working on new editor enhancements?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Case correction glitch

Post by Trond »

Pointer.POINT works, but if Pointer is a linked list POINT is turned into Point:

Code: Select all

List.Point()
Test.POINT
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

fixed.
quidquid Latine dictum sit altum videtur
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

By the way, why does the IDE complete wrtinafter the cursor leaves the word?

Exmaple:

enumera| <--- Word uncomplete, cursor still at the end of the word

enumeration| <--- Word completed, but the first character is not converted to UPPER CASE. PB 3.94 handled it correctly, 4.00 does not

Enumeration | <--- Convertion (?) completed, but first, if you compile the code, append a Space or press enter...

As I said, PB 3.94 handled it correctly.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

It is by design, so variable names etc that start with a keyword do not get
a case forced while you type them.

Try creating a variable called "AND51" (with this case) in 3.94
This was quite an annoying behaviour.

So now only the color changes (so you can know you typed it right, and it is a keyword),
but the case only changes when it is sure that you finished the word.
quidquid Latine dictum sit altum videtur
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

Ah, ok I understand!

This is a very clever idea :idea: Now, I don't consider this as a bug any longer.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

...but it does NOT work with constants..

try to name a constant #subway...
it will be changed to #SUB immediately, before you add the space...

....or did i miss a flag in the preferences?
oh... and have a nice day.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

True. I will add it there as well.
quidquid Latine dictum sit altum videtur
Post Reply