|
Page 1 of 1
|
[ 3 posts ] |
|
Compiler: not case-sensitive?
| Author |
Message |
|
Ford Prefect
Senior Roboticist
Joined: Sat Mar 01, 2008 12:52 pm Posts: 936 Location: a small planet in the vicinity of Beteigeuze
|
 Compiler: not case-sensitive?
hi,
in RobotC the compiler always changes function or variable names by himself, such as:
*Warning*:Substituting similar variable 'Xyz' for 'xyz'. Check spelling and letter case.
this substituting is not C-conform.
C is case-sensitive, and so both variables, Xyz and xyz, may exist besides one another.
Due to C conformity, the compiler should give a hint, but must not change this by himself.
Or is this a user defined adjustment? I didn't find anything anywhere...
_________________ Ford Prefect
Never purchase release 1.x ! (ancient programmer's wisdom) "Don't argue with idiots. They'll drag you down to their level and then beat you with experience."
|
| Sat May 24, 2008 12:27 pm |
|
 |
|
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 537
|
This feature is showing how ROBOTC was developed for Education in specific. ROBOTC does this to assist new users who may have a typo in their program by using improper-case structure.
I'll see if there's a way to create an option in the compiler to disable this feature, but don't expect this option to be included in the final 1.30 release... this has been a Day-1 feature of ROBOTC.
In the mean time, just use a different variable name.
_________________Timothy Friez ROBOTC Developer - SW Engineer tfriez@robotc.net
|
| Wed May 28, 2008 10:08 am |
|
 |
|
Ford Prefect
Senior Roboticist
Joined: Sat Mar 01, 2008 12:52 pm Posts: 936 Location: a small planet in the vicinity of Beteigeuze
|
hi,
thx for your reply.
As you are selling RobotC as "real C", 1st preference always should be ANSI C compatibility (C99,...) , and NOT educational or didactic intentions.
Language extensions and simplifications are welcome and appreciated, but the basic C (ANSI C 99) language definitions and command sets should always be supported.
After all, a (pre-) compiler hint to "check spelling" would fit, why make an immediate substitution by the compiler ?
But meanwhile I surely will use different file names.
|
| Thu May 29, 2008 3:25 am |
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 8 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|