Skip to content

UUID: Replace 'in ref' overloads with 'const scope ref'#7593

Merged
dlang-bot merged 1 commit intodlang:masterfrom
Geod24:fix-in-uuid
Aug 15, 2020
Merged

UUID: Replace 'in ref' overloads with 'const scope ref'#7593
dlang-bot merged 1 commit intodlang:masterfrom
Geod24:fix-in-uuid

Conversation

@Geod24
Copy link
Member

@Geod24 Geod24 commented Aug 15, 2020

'in' and 'in ref' overloads will conflict in the future if dlang/dmd#11000 is accepted.
Even if not, 'in' currently means something different based on a switch,
however the intention of this code is obviously the full 'const scope'.
In the some places, 'scope' was omitted as it is meaningless on value types.

'in' and 'in ref' overloads will conflict in the future if dlang/dmd#11000 is accepted.
Even if not, 'in' currently means something different based on a switch,
however the intention of this code is obviously the full 'const scope'.
In the some places, 'scope' was omitted as it is meaningless on value types.
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @Geod24!

Bugzilla references

Your 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 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#7593"

@dlang-bot dlang-bot merged commit e190083 into dlang:master Aug 15, 2020
@Geod24 Geod24 deleted the fix-in-uuid branch August 15, 2020 11:37
kinke added a commit to kinke/phobos that referenced this pull request Oct 31, 2020
Code compiled with -preview=in is currently supposed to link
successfully against druntime/Phobos compiled without -preview=in.

There were still a few places where -preview=in makes a difference for
existing `in` params; convert them to `const [scope]`, analogous to
PR dlang#7593.
dlang-bot pushed a commit that referenced this pull request Nov 1, 2020
Code compiled with -preview=in is currently supposed to link
successfully against druntime/Phobos compiled without -preview=in.

There were still a few places where -preview=in makes a difference for
existing `in` params; convert them to `const [scope]`, analogous to
PR #7593.
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