Re:Zig Quirks
by mindv0rtex on Monday March 27, 2023 @01:15PM
(#35329381)
The only requirement placed on the “moved out” variable is that you should be able to call its destructor. Which means that it has to be in a valid but unspecified state. So it's fine to access such a variable, so long as you don't read its exact state. You can still assign to it, for instance.
[ Parent
| on HN ]
There are no comments on this comment yet.