-
-
Notifications
You must be signed in to change notification settings - Fork 705
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
use constructors instead of move
#6939
Conversation
|
Thanks for your pull request and interest in making D better, @aG0aep6G! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "stable + phobos#6939" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Craftily done. One possibility would be to (re)do this when copy constructors get released (they just got merged). Anyhow, worksforme. @WalterBright?
I'm not sure how you'd use copy constructors here. Make every copy save the range? That's fine for new code, but changing the copy behavior of existing types seems like asking for trouble. |
|
I saw CircleCI and Buildkite failing with errors that seemed unrelated, so I thought I'd give them a kick with a force push. But I guess that was a bad idea. It only managed to remove the auto-merge label. Checks are still failing. Can someone help me out here? |
|
If you haven't rebased this recently please do so. |
|
Yep, this was forked off from an old master we've since fixed the issues with circle but you need to have branched off after that to see those fixes on this PR, a rebase will fix your problems. |
I've rebased, but this PR is against stable, not master. Does that make a difference? |
|
Ah, circle will still fail, but is not require to pass, sorry I missed that. I'm more concerned about the build kite failure but that might just be an unfortunate feature of the current stable. |
|
In short this needs a manual merge, which I will do tomorrow. |
This is a fix-up of #6346 and #6935.
As far as I understand, @WalterBright favors this style (cf. #6900, #6903).
Most of these are straight forward, but
chainandroundRobinare still a bit awkward, because they involve tuples. We don't have some kind ofmapfor tuples in Phobos, do we?