News for hackers. Stuff that matters.
Re:First C compiler ported to GCC by Turing_Machine on Wednesday April 07, 2021 @06:42AM (#26722944)
Even back then this was considered poor practice, however. The first edition of K&R had a subsection entitled "Pointers are Not Integers" (I don't know if that's still in modern editions).
Re:First C compiler ported to GCC by LukeShu on Wednesday April 07, 2021 @01:06PM (#26727704)
It looks to me like that section was removed in the 2nd edition. Some sections moved around, so maybe I'm just looking in the wrong place, but it's not nestled between "5.5 Character Pointers and Functions" and "5.7 Multi-Dimensional Arrays" like it is in the 1st edition.
Re:First C compiler ported to GCC by ufo on Wednesday April 07, 2021 @12:09PM (#26726949)
The interesting thing for me is that a variable without a type annotation could potentially store anything. It kind of explains why the language used "int" as the default type of variables declared without a type annotation.
Re:First C compiler ported to GCC by rbanffy on Wednesday April 07, 2021 @07:07AM (#26723157)
Now I want a float to access individual bits.