Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tsimionescu
on Nov 26, 2023
|
parent
|
context
|
favorite
| on:
Bjarne Stroustrup Quotes
Almost every C program does `int *c = malloc(sizeof(int) *10)` or similar, which has always been invalid C++.
fluoridation
on Nov 26, 2023
[–]
I believe most compilers have switches to allow this. The real issue you might run into that can't be worked around easily is if the C source uses a C++ keyword as an identifier.
kragen
on Nov 27, 2023
|
parent
[–]
#define new new_
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: