Categories
C WG14

Identifier Syntax Fixes

WG14 N 2836 Identifier Syntax using Unicode Standard Annex 31 was recently adopted into C23 by the C Standards Committee.

The adoption of this this paper solved some problems with C identifiers and helped maintain compatibility with C++ and other languages that had already adopted UAX 31. Unfortunately, we also introduced some new problems which are now addressed by the draft paper attached below. Please have a look and let me know what you think.

Categories
C Secure Coding WG14

Clarifying integer terms

I was recently horrified to learn that there is no real consensus about what the terms “overflow” and “wraparound” mean in the C Standard, in particular, if unsigned integers were capable of overflow. I wrote the attached paper to clarify the use of these terms. Please let me know if you have any comments, as I need to submit this paper soon.

Categories
C Secure Coding WG14

Volatile C++ Compatibility

I’m looking for feedback for the following proposal to the C Standards committee to maintain compatibility with C++ with respect to the deprecation of certain uses of volatile. Leave your comments/questions in the comments or email me. Thanks!

Categories
Announcement C Effective C Book

Effective C is Now Available

The Print Book and Ebook are now available from:

And other fine establishments.

Categories
Announcement C Secure Coding WG14

Adding a Defer Mechanism to C

I’ve been collaborating with several members of the C Standards Committee and other experts to propose a defer mechanism for C2x. Our initial proposal (which can be downloaded below) presents five design questions that will influence the final proposal. Let me know if you have any opinions below or on Twitter (follow me @RCS).