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,887 of 243,242   
   Andrey Tarasevich to Andrey Tarasevich   
   Re: function pointer question   
   07 Jan 26 08:23:29   
   
   From: noone@noone.net   
      
   On Wed 1/7/2026 8:17 AM, Andrey Tarasevich wrote:   
   >   
   > which is related to how qualifications are treated under `_Generic`.   
   > `_Generic` operates on "exact match" basis not on "type compatibility"   
   > basis. Which is why such matters suddenly become important.   
   >   
      
   No, I take it back. `_Generic` chooses its branches based on type   
   compatibility.   
      
   In that case it raises an interesting question: why does the C standard   
   keeps sticking to this, i.e. keeps persistent top-level qualifiers on   
   function parameters? Why not switch to C++-like approach and just   
   discard such qualifiers at the parameter type adjustment stage?   
   Especially now, after C17 started to explicitly do this with the return   
   type.   
      
   --   
   Best regards,   
   Andrey   
      
   --- 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