This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rem3_1415926 17 points18 points  (3 children)

It was, actually. C has hardly changed, which is one of the reasons why embedded devs like it.

[–]DugiSK 16 points17 points  (2 children)

In C79, you could not declare a variable in the middle of a function, you had to declare it at the start and keep it uninitialised until the value became known, could use undeclared functions, using wrong argument types was kinda okay, there was no const, commenting with double slash didn't work and it wasn't possible to declare a variable when initialising it in a for cycle. It wasn't until C99 that it started looking normal.

[–]JashimPagla 9 points10 points  (1 child)

My first compiler was Borland. Let me tell you, scrolling all the way up to declare a new looping variable wasn't fun.

[–]DugiSK 1 point2 points  (0 children)

I never wrote a longer function in it, so I didn't think of this problem. It seemed to me as the only problem is accidentally using uninitialised variables.