News for hackers. Stuff that matters.
Re:Tell HN: C Experts Panel – Ask us anything about C by commandersaki on Tuesday April 14, 2020 @12:46PM (#22868198)
Will Effective C cover the strict aliasing rule and also why the BSD sockets API seems to get away with it (e.g. (sockaddr *) &sockaddr_in)?
Re:Tell HN: C Experts Panel – Ask us anything about C by AaronBallman on Tuesday April 14, 2020 @04:24PM (#22871015)
I don't think the book covers strict aliasing, at least not in detail.
Re:Tell HN: C Experts Panel – Ask us anything about C by DougGwyn on Tuesday April 14, 2020 @04:17PM (#22870931)
I thought we had fixed the BSD socket aliasing a long time ago?
Re:Tell HN: C Experts Panel – Ask us anything about C by saagarjha on Tuesday April 14, 2020 @08:52PM (#22873255)
Isn't that legal if they are all in a union?