Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fuzztester
4 months ago
|
parent
|
context
|
favorite
| on:
Writing a C compiler in 500 lines of Python (2023)
Yes, function prototypes were introduced in the first ANSI version of C, IIRC, which came some years after the original C. The prototype feature was described in the second version of the classic K&R C book, The C Programming Language.
pjmlp
4 months ago
[–]
Function prototypes came to ANSI/ISO C via the ongoing work on ISO C++.
fuzztester
4 months ago
|
parent
[–]
Doesn't matter where it came from - in the context of my previous comment.
I was talking w.r.t. the earlier version of C, and not in connection with C++.
pjmlp
4 months ago
|
root
|
parent
[–]
It does from historical purposes, how the C standard came to be, what are the decisions that turned K&R C into C89.
fuzztester
4 months ago
|
root
|
parent
[–]
Okay, I get it now.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: