Skip to content

Comments

Fix Issue 24318 - Nullable should support non-copyable objects#8874

Merged
thewilsonator merged 4 commits intodlang:masterfrom
CyberShadow:pull-20240104-163639
Jan 4, 2024
Merged

Fix Issue 24318 - Nullable should support non-copyable objects#8874
thewilsonator merged 4 commits intodlang:masterfrom
CyberShadow:pull-20240104-163639

Conversation

@CyberShadow
Copy link
Member

Generally, if a type has a default value, it should be safe to assume
that it's OK to call the destructor on a default-initialized variable.

The converse is not compatible with `move`, and goes against
implementing non-copyable types.
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @CyberShadow!

Bugzilla references

Auto-close Bugzilla Severity Description
24318 enhancement Nullable should support non-copyable objects

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + phobos#8874"

@thewilsonator thewilsonator merged commit 73a54e2 into dlang:master Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants