Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Whatever happened to the 'entry' keyword?

While cruising through my white book the other day, I noticed in the list of C keywords. entry is one of the keywords on that list.

It is reserved for future use. Thinking back to my Fortran days, there was a function of some sort that used an entry statement to make a second argument signature, or entry point into a function.

Is this what entry was originally intended to be used for? or something completely different?

What is the story on the entry keyword?

like image 671
EvilTeach Avatar asked Oct 31 '08 18:10

EvilTeach


People also ask

What are keywords in language?

Keywords are predefined, reserved words used in programming that have special meanings to the compiler. Keywords are part of the syntax and they cannot be used as an identifier. For example: int money; Here, int is a keyword that indicates money is a variable of type int (integer).


2 Answers

I had no idea, so I googled to find something about this. This is what I found.

First, it was included as a reserved keyword.

Q: What was the entry keyword mentioned in K&R1?
A: It was reserved to allow functions with multiple, differently-named entry points, but it has been withdrawn.

(From http://archives.devshed.com/forums/c-c-134/c-programming-faqs-371017.html.)

It was never standardized; some compilers used it, in a very personal way.

It was later declared obsolete, I guess.

like image 177
Benoît Avatar answered Oct 04 '22 17:10

Benoît


In FORTRAN, "ENTRY" could declare a second entry point into a subroutine. It was a structured programming nightware, and fortunately C decided not to adopt it.

like image 21
Paul Tomblin Avatar answered Oct 04 '22 17:10

Paul Tomblin