News for hackers. Stuff that matters.
Re:A Defer Mechanism for C by scott_s on Monday December 14, 2020 @10:52AM (#25418925)
The proposal poses object value capture as an open question. See heading "Should object values be captured?" on page 14 of the proposal: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2542.pdf
Re:A Defer Mechanism for C by rseacord on Monday December 14, 2020 @12:18PM (#25420137)
Yes, you are correct and there wasn't much support for capturing values so we would probably only support capture by reference and wait to see if C solves this problem in general by introducing lambdas.