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

Kill deprecated implicit conversion from T[] to T* #1679

Merged
merged 2 commits into from
Feb 22, 2013

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Feb 21, 2013

This is necessary to fix a regression.
Issue 9539 - Regression (2.061): Wrong-code on static array pointer

See my detailed explanation in here

Just I should say here is: the deprecated implicit conversion feature already being a cancer in D2 type system.

@ghost ghost assigned WalterBright Feb 21, 2013
@9rnsr
Copy link
Contributor Author

9rnsr commented Feb 21, 2013

@WalterBright, this is a language change, but you should check this in high priority.

@leandro-lucarella-sociomantic
Copy link
Contributor

I guess this is related to #1292, right?

@9rnsr
Copy link
Contributor Author

9rnsr commented Feb 21, 2013

@leandro-lucarella-sociomantic No, there is no relation.

@@ -4296,9 +4297,9 @@ MATCH TypeDArray::implicitConvTo(Type *to)
return MATCHconvert;
}

return next->constConv(to) ? MATCHconvert : MATCHnomatch;
return next->constConv(tp->next) ? MATCHconvert : MATCHnomatch;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why has that piece of code worked before?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't - see Kenji's explanation in bug 9539.

@WalterBright
Copy link
Member

How do I merge this if github won't?

@9rnsr
Copy link
Contributor Author

9rnsr commented Feb 22, 2013

I've rebased commits on the head of master.

WalterBright added a commit that referenced this pull request Feb 22, 2013
Kill deprecated implicit conversion from T[] to T*
@WalterBright WalterBright merged commit aea19a6 into dlang:master Feb 22, 2013
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.

4 participants