EXCELLENT!
EXCELLENT!
Posted Jul 12, 2022 19:26 UTC (Tue) by tux3 (subscriber, #101245)In reply to: EXCELLENT! by khim
Parent article: Rust frontend approved for GCC
But this wouldn't require user-defined move constructors, right?
We don't have to use C++ as a references. You just.. apply relocations to fields tagged 'self lifetime after a move.
Today, the compilers knows moving is a memcpy.
With self-referential types, it would add (dst-src) to some fields after the memcpy, to maintain self-referentialness.
It's not obvious to me where this ought to go wrong.