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

Issue 8366 - Overriding const member function in conjunction with mutable overload causes a strange error #1042

Merged
merged 1 commit into from Mar 6, 2013

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Jul 10, 2012

http://d.puremagic.com/issues/show_bug.cgi?id=8366

We MUST kill attribute inference with const. To implement it correctly without breaking overriding and overloading features, re-scanning and arrangement of vtbl entries is needed in the end of ClassDeclaration::semantic, it will decrease compile speed.

I think that is a big drawbacks than the benefit.

@9rnsr
Copy link
Contributor Author

9rnsr commented Jul 10, 2012

I've posted supplemental pulls for druntime and phobos.
dlang/druntime#272
dlang/phobos#680

We should merge the two before this.

@9rnsr
Copy link
Contributor Author

9rnsr commented Aug 18, 2012

Updated test code.

@yebblies
Copy link
Member

FWIW, I support this pull.
@WalterBright, @andralex ?

@9rnsr
Copy link
Contributor Author

9rnsr commented Dec 14, 2012

@WalterBright : could you please review this, and merge into master.

… mutable overload causes a strange error

We MUST kill attribute inference with const. To implement it correctly without breaking overriding and overloading features, re-scanning and arrangement of vtbl entries is needed in the end of Classdeclaration::semantic, it will decrease compile speed.
I think that is a big drawbacks than the benefit.
WalterBright added a commit that referenced this pull request Mar 6, 2013
Issue 8366 - Overriding const member function in conjunction with mutable overload causes a strange error
@WalterBright WalterBright merged commit 2cab1b0 into dlang:master Mar 6, 2013
@9rnsr
Copy link
Contributor Author

9rnsr commented Mar 7, 2013

Thanks very much, @WalterBright ! This is good direction.

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