In similar manner to the similar question about generics. What was its first appearance, and how did spread to C?
edit: corrected question based on Jon Skeet's answer (; is a terminator, not a separator)
In similar manner to the similar question about generics. What was its first appearance, and how did spread to C?
edit: corrected question based on Jon Skeet's answer (; is a terminator, not a separator)
It's not a separator in C - it's a terminator.
However, I believe ALGOL may have been the first to use the semicolon in this sort of way.
Pascal had semicolons as terminators before C did; not sure if it was the first language to have them, though.
Definitely ALGOL.
Hmm, somebody changed the question. That's not quite cricket.
As for how it spread, well semicolons spread Algol 60 -> Simula -> C. K+R said that Pascal didnt influence them, IIRC, though some disputed this clam.
Statement terminators (other than new-line) spread from COBOL -> Jovial -> C. Though each had a different character as the teminator.
ALGOL is my guess too.
The significance is that it freed the user from punch-card-style fixed format.
If you have to use Fortran 77, you know what that means.