dvm icon indicating copy to clipboard operation
dvm copied to clipboard

dvm use latest major revision

Open schveiguy opened this issue 9 years ago • 3 comments

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?

schveiguy avatar Nov 10 '15 19:11 schveiguy

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.

jacob-carlborg avatar Nov 10 '15 19:11 jacob-carlborg

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.

schveiguy avatar Nov 10 '15 19:11 schveiguy

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.

jacob-carlborg avatar Nov 10 '15 19:11 jacob-carlborg