-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Conversation
|
@WalterBright, this is a language change, but you should check this in high priority. |
|
I guess this is related to #1292, right? |
|
@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; | |||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
|
How do I merge this if github won't? |
|
I've rebased commits on the head of master. |
Kill deprecated implicit conversion from T[] to T*
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.