Skip to content

Conversation

@davidelettieri
Copy link
Contributor

This PR adds support for single quote digits separator by converting into the underscore supported by C#.

Close #607

A couple of things I noticed while working on this:

  • some files are missing the copyright line at the top. I added it to the new file I created but I avoided changes to other files.
  • the following code is translated into a class with a private field but without initialization. If there is interest in having the initialization in the generated C# code, I'll be happy to work on the implementation.
class MyClass
{
public:
	float x = 1024;
};

C++ single quote digits separator is now converted to underscore writing numeral literals
@tannergooding tannergooding merged commit 48900c6 into dotnet:main Oct 16, 2025
14 checks passed
@davidelettieri davidelettieri deleted the feat/support-digits-separator branch October 17, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support C++ single-quote digit separators

2 participants