home bbs files messages ]

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

   comp.os.linux.misc      Linux-specific topics not covered by oth      135,536 messages   

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

   Message 134,273 of 135,536   
   John Levine to All   
   Re: C structures, was naughty Python   
   02 Jan 26 22:41:42   
   
   XPost: alt.folklore.computers   
   From: johnl@taugh.com   
      
   According to Lawrence D˙Oliveiro  :   
   >On Fri, 2 Jan 2026 08:49:25 -0800, John Ames wrote:   
   >   
   >> ... it's not guaranteed that the compiler won't take liberties in   
   >> arranging members of a struct for optimization purposes ...   
   >   
   >The C23 spec (section 6.2.5, “Types”) does say the member objects of a   
   >struct type need to be “sequentially allocated”.   
      
   That language has been there a long time.  It's in my copy of C11 and it   
   wasn't new then.  It's probably always been there since we wrote code   
   that used the common struct prefix hack in K&R C.   
      
   --   
   Regards,   
   John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for   
   Dummies",   
   Please consider the environment before reading this e-mail. https://jl.ly   
      
   --- 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