Re:The problem with C
by flohofwoe on Thursday September 03, 2020 @11:09AM
(#24364771)
Yeah, adding the inline keyword to C wasn't such a great idea in hindsight because it muddled the separation of interface and implementation (LTO is the better solution IMHO). A possible workaround would be that such a "declaration parser" would ignore the function implementation block (but inline code would make the library unusable from C++ anyway). As for macros: they would simply be resolved by the declaration parser, and either the result is parsable as declarations or not (which would then be an error).
[ Parent
| on HN ]
Re:The problem with C
by i-am-curious on Friday September 04, 2020 @03:11AM
(#24372501)
Doesn't LTO interfere with debugging massively?