Print Topic - Archive

XBLite Forum  /  XBLite Compiler  /  Non case sensitive keywords
Posted by: anta40, August 30, 2009, 10:29am
I just noticed that all XBLite keywords are uppercase, while on the other BASIC variants they don't need to be upper case.
Would it be difficult to implement this?
Posted by: Register, September 2, 2009, 10:58am; Reply: 1
Hi anta40,

Max Reason decided (with reason) that all XBASIC's keywords would be uppercase. Visually, it allows you to separate keywords from User identifiers so I tend to think that it was a good design choice. A drawback is that you must type your keywords "caps on", which, like lzdude69 stated it, can cause cramps to your poor pinky.

To preserve your so useful pinky, D. has added the possibility to XSED to capitalize "on the fly" xblite's keywords. Works great for me and my pinky!

To answer precisely to your question: I see no reason to allow mixed case keywords and XSED will capitalize all keywords that you typed in lowercase. Just remember to turn on the proper editor switch.
Posted by: anta40, September 2, 2009, 2:37pm; Reply: 2
If it's by design then I think I can accept. Personally, I prefer lowercase keywords, like in C. Uppercase keywords sometime look annoying. No big deal, anyway...  :)

And maybe I should use XSED, instead of a common programming editor...

;)

Print page generated: September 10, 2010, 6:50am