Re:Trip report: Autumn ISO C++ standards meeting (Kona, HI, ...
by diath on Sunday November 12, 2023 @02:50PM
(#38243499)
In the reflections example, is the "^" a new operator?
[ Parent
| on HN ]
Re:Trip report: Autumn ISO C++ standards meeting (Kona, HI, ...
by Bigpet on Monday November 13, 2023 @04:23AM
(#38248462)
Yep, for types that's a new operator. It is also a binary operator for xor, for values. But no unary use from what I remember.They call it "reflection operator" in the paper.
It was previously used by Microsoft for their C++/CLR (or C++/CLI) to mark garbage collected values. But that was after the type, not in front iirc.
Re:Trip report: Autumn ISO C++ standards meeting (Kona, HI, ...
by peterhull90 on Monday November 13, 2023 @07:26AM
(#38249423)
To quote the paper - "The reflection operator produces a reflection value from a grammatical construct (its operand)" [0]
[0]: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p29...