Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert PR 11945 (Postblit has priority over copy constructor) #11947

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

Geod24
Copy link
Member

@Geod24 Geod24 commented Nov 11, 2020

This reverts commit c35ace6 PR #11945 .

PR 11945 / this commit introduces a silent change of behavior,
which leads to fields with postblit not having their postblit
called anymore.
A deprecation path was proposed, and would require the user to
disable postblit when a copy constructor is present,
or issue a deprecation message otherwise.
Other options are likely available to avoid a silent behavior change.
However, since the PR was merged within 4 minutes of being submitted,
there were no time for such suggestions.
Additionally, the PR was lacking both a spec PR and a changelog entry.

…structor"

This reverts commit c35ace6.

PR 11945 / this commit introduces a silent change of behavior,
which leads to fields with postblit not having their postblit
called anymore.
A deprecation path was proposed, and would require the user to
disable postblit when a copy constructor is present,
or issue a deprecation message otherwise.
Other options are likely available to avoid a silent behavior change.
However, since the PR was merged within 4 minutes of being submitted,
there were no time for such suggestions.
Additionally, the PR was lacking both a spec PR and a changelog entry.
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @Geod24!

Bugzilla references

Auto-close Bugzilla Severity Description
20714 normal Struct with postblitting member does not call it's copy constructor
20965 major Implicitly generated postblit overrides disabled copy ctor

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 + dmd#11947"

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