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

dvm use latest major revision #35

Open
schveiguy opened this issue Nov 10, 2015 · 3 comments
Open

dvm use latest major revision #35

schveiguy opened this issue Nov 10, 2015 · 3 comments

Comments

@schveiguy
Copy link
Contributor

If I say dvm use 2.068, is it possible to have dvm imply that it should use the highest-installed version of dmd that starts with 2.068?

@jacob-carlborg
Copy link
Owner

I don't see a technical reason why that wouldn't be possible. Not sure if it would be confusing, especially since that's how the version scheme looked like previously.

@schveiguy
Copy link
Contributor Author

I knew it was technically possible :)

My question was more about does it make sense to do that.

I frequently just think to myself "how does this test compile in 2.068" or some other major rev, and dvm use 2.068 fails, I have to type in 2.068.0 or .1 or .2.

It may be confusing, if you type in 2.068 and were expecting to get 2.068.0. But I think from a UI point of view, when you say 2.068, you aren't caring about the point release. The most logical thing to use is the latest point release for that version.

In any case, if it makes sense I think it would be a good addition.

Another cool thing would be to extend tab completion for the shell for this.

@jacob-carlborg
Copy link
Owner

My question was more about does it make sense to do that.

Sure, why not. And perhaps print the version it actually switched to.

Another cool thing would be to extend tab completion for the shell for this.

That would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants