Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 The $ is not treated as a identifier character
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - Apr 15 2004 :  07:11:43 AM  Show Profile
If I have a macro defined as
#define B$C 1

ALT+G does not work for this.
Also all functions with a $ sign in its name does not appear in the symbols dialog.

Martin

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

mjv
Junior Member

16 Posts

Posted - Apr 15 2004 :  11:40:34 AM  Show Profile
I see this problem too in VC6, but have only a few variables defined this way. I didn't realize the $ was allowed in other places as well.

#define $CONFIG "Config"
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - May 10 2004 :  04:41:36 AM  Show Profile
What about this bug?

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 10 2004 :  2:32:19 PM  Show Profile
Forgive our ignorance, at least for one of us, but we did not realize you could use $ in an identifier.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccelng/htm/prepr_3.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccelng/htm/eleme_6.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccelng/htm/plintro.asp

Do you have a reference for the capability? It does appear to work.

Whole Tomato Software, Inc.
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - May 11 2004 :  02:19:02 AM  Show Profile
You are absolutly right! There is no documentation about this!
Even if it would be an MS extension there should be an documentation.
I just asked MS about it. I come back with an answer.
Martin

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

kn00
New Member

4 Posts

Posted - May 11 2004 :  05:05:57 AM  Show Profile
This isn't legal C/C++. See section 2.10 of the standard.
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - May 11 2004 :  09:36:21 AM  Show Profile
And I had forgotton that the first character has to be a letter...
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - May 13 2004 :  03:54:13 AM  Show Profile
quote:
Originally posted by kn00

This isn't legal C/C++. See section 2.10 of the standard.



Don't argue with me what is standard C/C++. There are enough MS specific extension and this is one. And do not argue with me if this is good or bad.

Brandon Bray (a guy from the VC++ compiler team) told me that this will work also in all future compilers of MS, for backward compatibility. In fact I know thta this is possible since MSDOS-C compiler 5.0 (1988).

It is simply not documented and this is an error from Microsoft. I just added a change request for that.
Sorry I thought it was documented.

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - May 14 2004 :  01:52:59 AM  Show Profile
I just received a message of vcdocs (Documentation for VC at MS), they will correct the documentation.

TIA

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 16 2004 :  8:45:47 PM  Show Profile
ixBug=69

Whole Tomato Software, Inc.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jun 03 2004 :  2:33:57 PM  Show Profile
Fixed in 1239.

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000