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

Add support for DMD 2.094 -preview=in switch #85

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

Geod24
Copy link
Collaborator

@Geod24 Geod24 commented Aug 31, 2020

This will allow users to use -preview=in as soon as it's released.
'in ref' on string doesn't make much sense, so it was turned into a simple 'in'.
'Location' is a string + an 'int', and while that would be passed by ref with the
new switch, there's not much point in ensuring ref here, as the difference is
minimal, but prevents using rvalues, so it was also turned into a simple 'in'.
Lastly, for node, it was changed to be simply 'const ref', so as to keep the 'ref'.

@s-ludwig : Would be nice to have this in a release, as Vibe.d requires it (dlang/dmd#11632)

This will allow users to use -preview=in as soon as it's released.
'in ref' on string doesn't make much sense, so it was turned into a simple 'in'.
'Location' is a string + an 'int', and while that would be passed by ref with the
new switch, there's not much point in ensuring ref here, as the difference is
minimal, but prevents using rvalues, so it was also turned into a simple 'in'.
Lastly, for node, it was changed to be simply 'const ref', so as to keep the 'ref'.
@Geod24
Copy link
Collaborator Author

Geod24 commented Aug 31, 2020

I don't know if you can review this too @wilzbach ?

@wilzbach
Copy link
Contributor

Review, but I don't have merge rights here.

@Geod24
Copy link
Collaborator Author

Geod24 commented Aug 31, 2020

@s-ludwig : Any chance we could move this to the vibe.d org since it depends on it ?

@Geod24 Geod24 merged commit 6a12818 into rejectedsoftware:master Sep 2, 2020
@Geod24 Geod24 deleted the in-ref branch September 2, 2020 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants