News for hackers. Stuff that matters.
Re:What is your favorite C programming trick? (2009) by jhallenworld on Sunday November 22, 2020 @10:23AM (#25178105)
ptr.member should work here- I mean the compiler knows the left side is a pointer, so it should automatically dereference it.
Re:What is your favorite C programming trick? (2009) by beagle3 on Sunday November 22, 2020 @12:55PM (#25179414)
C was practically a portable assembler when it was designed, and it was likely helpful for performance reasoning that all indirections were clearly visible.