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

deprecation warning for old parametric method syntax. fixes #11310 #22834

Merged
merged 2 commits into from
Jul 28, 2017

Conversation

JeffBezanson
Copy link
Sponsor Member

OK folks, it's time to rip the band-aid off.

@JeffBezanson JeffBezanson added the kind:deprecation This change introduces or involves a deprecation label Jul 16, 2017
(syntax-deprecation #f
(string "inner constructor " name "(...)" (linenode-string lno))
(deparse `(where (call (curly ,name ,@params) ...) ,@params)))))
(syntax-deprecation #f
Copy link
Contributor

Choose a reason for hiding this comment

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

either here on in deprecated.jl, should these be annotated with "remove in version ..." ?

@JeffBezanson
Copy link
Sponsor Member Author

Anybody understand the linux64 failure here?

@yuyichao
Copy link
Contributor

Seen it once on #22684 last night. No sure what happened and doesn't seem to be clear error message...

@ararslan
Copy link
Member

Rebased and fixed conflict. We'll see whether the failure shows up again.

@JeffBezanson
Copy link
Sponsor Member Author

Script to automatically fix these:

https://discourse.julialang.org/t/psa-parametric-method-syntax-deprecation-about-to-drop/4931/15
https://gist.github.com/ZacLN/2f0d66c651647e32eae85e58102315cb

Just tried it myself, seems to work well.

@ararslan
Copy link
Member

Nice! Is this ready to be merged then? AV failure is a timeout.

martinholters added a commit to HSU-ANT/ACME.jl that referenced this pull request Jul 26, 2017
To maintain backward compatibility, parametric function definitions are
done using the macro `pfunction`. Function definition that also require
at-compat employ a second new macro, `expandafter`, so that Compat sees
the generated function defition.
@martinholters
Copy link
Member

Resolved conflicts using web interface, so needs squashing.

martinholters added a commit to HSU-ANT/ACME.jl that referenced this pull request Jul 26, 2017
To maintain backward compatibility, parametric function definitions are
done using the macro `pfunction`. Function definitions that also require
`compat` employ a second new macro, `expandafter`, so that `compat` sees
the generated function definition.

Bumps Compat requirement to 0.26.0 because it uses
`macroexpand(::Module, ::ANY)`.
Copy link
Member

@Sacha0 Sacha0 left a comment

Choose a reason for hiding this comment

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

:) !

@JeffBezanson JeffBezanson merged commit c6e51d0 into master Jul 28, 2017
@JeffBezanson JeffBezanson deleted the jb/fix11310-3 branch July 28, 2017 02:25
@quinnj
Copy link
Member

quinnj commented Jul 28, 2017

Oh goody, let's see if I missed any from my pre-emptive strike.

yuyichao added a commit to yuyichao/julia that referenced this pull request Jul 29, 2017
yuyichao added a commit to yuyichao/julia that referenced this pull request Sep 17, 2017
yuyichao added a commit to yuyichao/julia that referenced this pull request Sep 19, 2017
yuyichao added a commit to yuyichao/julia that referenced this pull request Sep 26, 2017
yuyichao added a commit to yuyichao/julia that referenced this pull request Sep 27, 2017
yuyichao added a commit to yuyichao/julia that referenced this pull request Sep 27, 2017
yuyichao added a commit to yuyichao/julia that referenced this pull request Oct 25, 2017
yuyichao added a commit to yuyichao/julia that referenced this pull request Oct 25, 2017
yuyichao added a commit to yuyichao/julia that referenced this pull request Oct 26, 2017
yuyichao added a commit to yuyichao/julia that referenced this pull request Oct 31, 2017
yuyichao added a commit to yuyichao/julia that referenced this pull request Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:deprecation This change introduces or involves a deprecation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants