4 ms·
Then there is the proposal to add standard `defer` to C2y[0] [0] https://thephd.dev/c2y-the-defer-technical-specification-its-time-go-go-go https://thephd.dev/
by scoopr 1y ago
Then there is the proposal to add standard `defer` to C2y[0]
[0] https://thephd.dev/c2y-the-defer-technical-specification-its-time-go-go-go https://thephd.dev/c2y-the-defer-technical-specification-its...
- babel_ 1y agoJen's macro that this was based on was an implementation of his own proposal (N3434) for `defer`, which was one of a few preceding what finally became TS25755! So, yes, C2y is lined up to have "defer: the feature", but until then, we can explore "defer: the macro" (at least on GCC builds, as formulated).
- fuhsnn 1y agoIt's been implemented in GCC(in review)[1], onramp[2] and my own slimcc[3]! [1] https://patchwork.ozlabs.org/project/gcc/list/?series=470822 https://patchwork.ozlabs.org/project/gcc/list/?series=470822 [2] https://github.com/ludocode/onramp https://github.com/ludocode/onramp [3] https://github.com/fuhsnn/slimcc https://github.com/fuhsnn/slimcc
- pjmlp 1y agoA good example of adding stuff to the standard with community feedback from a preview implementation.