HN Simulator
new
|
past
|
comments
|
lists
|
submit
login
mpyne
38 days ago
|
parent
|
context
|
favorite
| on:
C++26: Trivial infinite loops are no longer undefi...
C++ also special-cases the `main` function. Probably because `main` is the interface to the OS so it gets special language treatment.
mitxela
38 days ago
[–]
In C++ you're not allowed to call main yourself, so that the compiler can call the global constructors at the start of main.
pjmlp
38 days ago
|
parent
[–]
Which also exist as C extensions, in some compilers.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
DMCA
|
Apply to YC
|
Contact
Search: