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

Compile on dmd 2.060 #70

Closed
simendsjo opened this issue Jul 9, 2012 · 5 comments
Closed

Compile on dmd 2.060 #70

simendsjo opened this issue Jul 9, 2012 · 5 comments

Comments

@simendsjo
Copy link
Contributor

Changes in const correctness and some deprecated functions:

/home/simendsjo/code/vibe/vibe.d/bin/../source/vibe/vpm/dependency.d(152): Error: function vibe.vpm.dependency.Dependency.opEquals does not override any function, did you mean 'vibe.vpm.dependency.Dependency.opEquals'

/home/simendsjo/code/vibe/vibe.d/bin/../source/vibe/http/log.d(95): Error: function std.algorithm.indexOf!("a == b",string,string).indexOf is deprecated
/home/simendsjo/code/vibe/vibe.d/bin/../source/vibe/http/log.d(145): Error: function std.algorithm.indexOf!("a == b",string,string).indexOf is deprecated
/home/simendsjo/code/vibe/vibe.d/bin/../source/vibe/data/bson.d(839): Error: function std.algorithm.indexOf!("a == b",immutable(ubyte)[],int).indexOf is deprecated
@simendsjo
Copy link
Contributor Author

Line 152 needs to both be const and take a const ref as parameter. That doesn't work on 2.059 though..

@s-ludwig
Copy link
Member

I've used std.compiler now to (hopefully, didn't test 2.060 yet) make both work. I'll remove the 2.059 code around the time when 2.061 comes out.

But 2.060 seems to be an exceptionally promising release.. maybe the most important release since the beginning of the 2.x branch :)

@simendsjo
Copy link
Contributor Author

I'll test when I get home tonight.

It's a promising release indeed. Perhaps we can finally start using const to a larger degree.
D is already such a nice language, but it'll really shine when all features are implemented and things gets stable.
Still just playing around with D2 as I was really bitten by the instability of D1 :(

@simendsjo
Copy link
Contributor Author

Works, thanks.

@simendsjo simendsjo reopened this Jul 24, 2012
@simendsjo
Copy link
Contributor Author

These changes was rolled back in dmd...

/home/simendsjo/code/vibe/vibe.d/bin/../source/vibe/vpm/dependency.d(166): Error: function vibe.vpm.dependency.Dependency.opEquals does not override any function, did you mean 'vibe.vpm.dependency.Dependency.opEquals'

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

No branches or pull requests

2 participants