Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
JoachimSchipper
on July 23, 2010
|
parent
|
context
|
favorite
| on:
How to design a replacement for C++
Yes and no. Yes, that is a valid #define; but the following program
must
work:
#include <stdio.h> #undef getc int main(void) { getc(stdin); return 0; }
so it cannot be implemented as
only
a macro.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: