Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7934015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:30:42+00:00 2026-06-03T21:30:42+00:00

The most beautiful about standards is that there are so many. When reading the

  • 0

The most beautiful about standards is that there are so many. When reading the C++11 standard compared to the CLI-Standard (5th edition), I’m getting a little bit confused about the identifier naming.

Where C++ allows according [ISO/IEC 14882:2011 page 23] ASCI: _a-zA-Z0-9 (regardless the order) and according [page 1249] A lot of unicode characters .. there is no definition for $ (0x24). On the other hand [ECMA335 partition II page 13] allows a-zA-Z0-9_``@$ as identifier-characters.

In other words C++ shouldn’t support $ (0x24) inside identifier names, but the CLR should. When testing this i’ve noticed exactly the opposite:

  • native C++ (native MSVC [of VS2010 Ultimate], GCC [2.8.1], minGW [latest]) supports $;
  • C++\CLI or even C# (MSVC) doesn’t support $.

So what is the truth? Am I missing something when reading the standards? Or is everybody doing what he wants to do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:30:44+00:00Added an answer on June 3, 2026 at 9:30 pm

    A complication is that section 2.2 says:

    Physical source file characters are mapped, in an implementation-defined manner, to the basic source character set (introducing new-line characters for end-of-line indicators) if necessary. The set of physical source file characters accepted is implementation-defined.

    So we formally don’t know that the $ in the source file corresponds to a dollar sign in the identifier. It just might be mapped to something else.

    The requirements in the language standard is also a minimum what an implementation must provide. All compilers provide extensions to the standard language. Allowing extra characters in identifier names might be such an extension, possibly to support old pre-standard code or some OS specific features.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Most texts on the C++ standard library mention wstring as being the equivalent of
Most people talk about progressive enhancement right now as serving browsers with javascript (enhanced
There is a common practice of using <a></a> tags to markup beautiful buttons, with
Well, I think YAML is really fantastic... It's beautiful, easy to read, clever syntax...compared
Most C++ users that learned C prefer to use the printf / scanf family
What is the most beautiful way to copy the value from a hardcoded JSP
I'm getting acquainted with GWTP. I tried to output a table, that would contain
I have made an application in Google app engine that is using Beautiful Soup.
Most of us write conditionals like: if (resultIndex == 0) ...but occaisionally I come
Most databases support some form of insert into select... statement. insert into a select

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.