News for hackers. Stuff that matters.
Re:The Descent to C (2013) by junon on Friday September 03, 2021 @06:56PM (#28410365)
Wow, a new C trick I didn't know about. What's the history here?

Also, gross.

Re:The Descent to C (2013) by turminal on Friday September 03, 2021 @08:42PM (#28411069)
On some ancient systems { and } don't exist. So an alternarive made of more common characters is provided. There is also a two-character combination for [ and ] and a three character combination for |, & and some other characters. The feature is called digraphs/trigraphs and is disabled on most modern compilers by default.
Re:The Descent to C (2013) by Zababa on Saturday September 04, 2021 @11:17AM (#28415853)
> The feature is called digraphs/trigraphs and is disabled on most modern compilers by default.

Digraphs and trigraphs are treated differently. <% and %> are fine on GGC and Clang, but ??< and ??> are disabled by default. Both need the -trigraphs option.

Re:The Descent to C (2013) by junon on Saturday September 04, 2021 @09:17AM (#28414824)
Ah okay I knew about that whole thing, I didn't think C had so many of them.