Struct should be invalid after move

Sebastiaan Koppe mail at skoppe.eu
Tue Nov 27 14:53:24 UTC 2018


On Tuesday, 27 November 2018 at 14:37:40 UTC, Stanislav Blinov 
wrote:
> What Sebastiaan proposes is for there to be *no* behavior at 
> all, as using an invalid value would become a compile-time 
> error. Which would mean one wouldn't need extraneous run-time 
> checks.

Yes. The only valid thing to do would be to move an existing 
Handle into it (explicitly or as a result of a function).


More information about the Digitalmars-d mailing list