home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,508 of 243,242   
   Tim Rentsch to Keith Thompson   
   Re: _BitInt(N)   
   21 Dec 25 22:24:40   
   
   From: tr.17687@z991.linuxsc.com   
      
   Keith Thompson  writes:   
      
   > Tim Rentsch  writes:   
   >   
   >> Richard Heathfield  writes:   
   >>   
   >>> On 02/12/2025 23:33, Keith Thompson wrote:   
   >   
   > [...]   
   >   
   >>>> But trigraphs have been removed in C23.   
   >>>   
   >>> Then so, in some mainframe environments, have curly braces.  I suppose   
   >>> their fix will be to not adopt C23.   
   >>   
   >> Curly braces are still available by means of the digraphs <% and %>.   
   >   
   > True, and that's probably good enough, but digraphs aren't recognized   
   > in string literals, character constants, header names, or comments.   
      
   Comments are irrelevant because they aren't translated;  if someone   
   wants to use trigraphs (or digraphs) for curly braces inside a   
   comment they are perfectly free to do so.   
      
   Header names can be handled by copying or linking the file with a   
   new name, where the new name has <% and %> in place of curly braces.   
      
   String literals and character constants are a mild inconvenience,   
   but nothing more than that - just four #define of symbols with   
   appropriate values.  Once those values are determined it should be   
   straightforward to effect the necessary changes programmatically.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca