-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Make parametric stagedfunctions work better #8505
Comments
Unfortunately, on #8501 I used up a little more time than I actually had available to work on julia-core projects, so I'm not going to get to these for a little while. |
JeffBezanson
added
the
bug
Indicates an unexpected problem or unintended behavior
label
Oct 23, 2014
Thanks for this, however, I noticed a bug if the parameters in the function specification does not match the order in which they appear in the arguments. That is: stagedfunction foo1{N,T}(a::Array{T,N})
println("N = $N, T = $T")
return :a
end
stagedfunction foo2{T,N}(a::Array{T,N})
println("N = $N, T = $T")
return :a
end
foo1(randn(3,3)); # => N = Float64, T = 2
foo2(randn(3,3)); #=> N = 2, T = Float64 |
JeffBezanson
added a commit
that referenced
this issue
Oct 26, 2014
Thanks for fixing this |
👍 |
twadleigh
pushed a commit
to twadleigh/julia
that referenced
this issue
Oct 29, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
h
gives what one wants, but it's not as pretty as it should be.Test:
The text was updated successfully, but these errors were encountered: