Re:A Defer Mechanism for C
by quelsolaar on Monday December 14, 2020 @12:02PM
(#25419875)
I agree. I have tried to come up with some reasonable way to constrain macros, but its really hard!
[ Parent
| on HN ]
Re:A Defer Mechanism for C
by whatshisface on Monday December 14, 2020 @03:09PM
(#25422561)
The way to do it is, survey your macro use to identify common patterns, specify them formally, and then write a computer program that allows those patterns specifically but no others. In other words, design a higher-level language. ;)
Re:A Defer Mechanism for C
by desiderantes on Monday December 14, 2020 @08:09PM
(#25425774)
Something like https://wiki.gnome.org/Projects/Vala ?