Re:Proposal for a Friendly Dialect of C
by jjnoakes on Wednesday August 27, 2014 @08:00PM
(#8235307)
There's an obvious solution to this: have friendly-c compilers accept some declaration silently in a source file:
Now, c code can compile as friendly-c code, but explicitly-declared friendly-c code will fail if passed to a normal C compiler.
[ Parent
| on HN ]
Such code would also fail if passed to tools like lint, and would result in warnings or worse when loaded in IDEs. The incredible C toolchain built over the decades is one of C's biggest advantages; friendly-c cannot afford to lose even 10% of it.
So make it a #pragma.