-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
at-evalpoly is broken #23239
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
Comments
This is basically #23221. Right now it's impossible to write macros that calls other macros correctly without doing everything manually. |
As a workaround, we could inline the However, in the long run I think we need to make it possible for macros to call macros. |
From the
The horner macro returns a block with an assignment to a (hygienic) variable |
Reduced example:
I can see why this happens, but I find it really confusing. |
previously, we were treating hygienic-scope as also introducing a new scope-block that was wrong (and inconsistent with previous behavior) also, we were failing to set the outermost flag when entering a hygienic-scope block, further compounding the above error fix #23239
Related fallout: #23221, JuliaCI/BenchmarkTools.jl#69, JuliaMath/SpecialFunctions.jl#42. |
previously, we were treating hygienic-scope as also introducing a new scope-block that was wrong (and inconsistent with previous behavior) also, we were failing to set the outermost flag when entering a hygienic-scope block, further compounding the above error fix #23239
previously, we were treating hygienic-scope as also introducing a new scope-block that was wrong (and inconsistent with previous behavior) also, we were failing to set the outermost flag when entering a hygienic-scope block, further compounding the above error fix #23239
Just came across what's presumably the same bug. On 0.6: julia> W2 = @evalpoly(0.1729150690306449, @evalpoly(1.2151064605177766, -27.0, -84.0, -56.0),
-11.614665966268532,
163.17740776843848)
-208.88143856876326 On 0.7: julia> W2 = @evalpoly(0.1729150690306449, @evalpoly(1.2151064605177766, -27.0, -84.0, -56.0),
-11.614665966268532,
163.17740776843848)
-191.5798454805012 |
previously, we were treating hygienic-scope as also introducing a new scope-block that was wrong (and inconsistent with previous behavior) also, we were failing to set the outermost flag when entering a hygienic-scope block, further compounding the above error fix #23239
previously, we were treating hygienic-scope as also introducing a new scope-block that was wrong (and inconsistent with previous behavior) also, we were failing to set the outermost flag when entering a hygienic-scope block, further compounding the above error fix #23239
@dlfivefifty, your case is also fixed by #23247. |
👍 FastGaussQuadrature.jl now passes all tests on 0.7 |
The following works fine in 0.6:
Probably the same as JuliaMath/SpecialFunctions.jl#42, where it was bisected to #22985.
cc @vtjnash
The text was updated successfully, but these errors were encountered: