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

Move complex/imaginary types from transition to deprecation #5731

Closed
wants to merge 1 commit into from

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented May 6, 2016

Does not attempt to move checking anywhere else.

@ibuclaw
Copy link
Member Author

ibuclaw commented May 6, 2016

Yay! Deprecation messages everywhere!

@yebblies @CyberShadow - ideas welcome. Just speaking to @schveiguy and preferably we'd have the deprecation only emitted once per module. This should be trivial to do.

@CyberShadow
Copy link
Member

../phobos/std/internal/test/uda.d(8): Error: enum std.internal.test.uda.Attr is forward referenced looking for base type

How did this get broken?

@schveiguy
Copy link
Member

Just a note: I saw @ibuclaw's output before and after he made it so there was one message printed per module. So so much better afterwards.

I'm of absolutely no use to help review or help fix any failures here. But I just wanted to chime in with my approval of the idea to make it one message per module.

I don't know if we can fix Phobos to avoid printing so much warnings otherwise. It may be possible, but it means a goofy refactoring of the code.

@ibuclaw
Copy link
Member Author

ibuclaw commented May 7, 2016

@CyberShadow apparently the place where I put the check for complex types is too early.

@ibuclaw
Copy link
Member Author

ibuclaw commented May 7, 2016

Going to move it from semantic -> semantic3

@ibuclaw
Copy link
Member Author

ibuclaw commented May 7, 2016

Oh, there is no semantic3 for TypeExp. :-\

@wilzbach
Copy link
Member

wilzbach commented May 15, 2016

Yay! Deprecation messages everywhere!

As auto-tester fails currently I just did a quick grep over Phobos, and it doesn't seem that bad ;-)

ifloat: 18
idouble: 22
ireal: 23
cfloat: 19
cdouble: 28
creal: 43

Btw: How about adding a EOL and final deprecation date to the warning and code?
e.g They will be removed in March 2017. @@@DEPRECATED_2017-03@@@

@wilzbach
Copy link
Member

wilzbach commented Aug 7, 2016

A new issue "cdouble is broken" just bumped in, it might be worth to get this in sooner than later? ;-)

@ibuclaw
Copy link
Member Author

ibuclaw commented Aug 7, 2016

Yes. What needs to happen is to move these deprecations closer to the end of the semantic analysis pass. These current checks can happen before all symbols are resolved, hence the failures.

@ibuclaw
Copy link
Member Author

ibuclaw commented Sep 28, 2017

Closing as I created a new PR on this.

@ibuclaw ibuclaw closed this Sep 28, 2017
@ibuclaw ibuclaw deleted the deprecatecomplex branch September 28, 2017 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants