-
-
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
Better error message for invoke #9635
Conversation
I have also extended some error printing in #9485, where I also made a test file for |
a7f5aae
to
7cf7a3e
Compare
it doesn't seem like the args parameter is needed after this commit. should we just remove it always? |
@vtjnash In principle yes. But is that counted as a breaking change? (hopefully it's not a very big breakage) |
yes. but making breaking changes on master is fine right now (adding |
One issue with removing the args parameter is that the row vector vs column vector check would have to be done in the constructor. |
I'm wondering if the GC stack needs to be poped before |
jl_throw undoes all JL_GC_PUSH calls that happened inside of the JL_TRY |
Ahh, I see the |
e33f3b8
to
2f5c762
Compare
All the suggested changes have been implemented. A few changes listed below
|
Presumably this logic was originally not done in the constructor out of fear of a performance hit? Others will have to comment on that. I also don't see why you need two extra fields here to replace Overall, this is clearly an improvement. |
That and also to preserve more information of the argument?
There are two different issues here.
|
Alternatively I could remove the logic in the constructor and just save whatever argument passed to it and then do the conversion in the Is there a preference? |
Actually I think I prefer this way (save the |
Before
After