Skip to content

Conversation

JeffBezanson
Copy link
Member

@JeffBezanson JeffBezanson commented Feb 1, 2022

Depends on #43320, but I will put this up now for review.

TODO: Add signature type compatibility check in codegen.

@JeffBezanson JeffBezanson force-pushed the jb/novaoverride2 branch 2 times, most recently from cd09901 to 59089f0 Compare February 11, 2022 16:50
@JeffBezanson JeffBezanson marked this pull request as ready for review February 11, 2022 16:50
@JeffBezanson JeffBezanson force-pushed the jb/novaoverride2 branch 2 times, most recently from 5bccf4b to de69e0d Compare February 15, 2022 04:56
Instead allow specifying an argument tuple type separately.
@JeffBezanson JeffBezanson merged commit 983598a into master Feb 15, 2022
@JeffBezanson JeffBezanson deleted the jb/novaoverride2 branch February 15, 2022 22:45
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request Feb 17, 2022
Instead allow specifying an argument tuple type separately.
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
Instead allow specifying an argument tuple type separately.
Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

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

Good cleanup. I think there is a missing JL_TYPECHK / jl_is_datatype though (at the marked place)?

// TODO: remove
jl_value_t *jl_fptr_va_opaque_closure(jl_opaque_closure_t *oc, jl_value_t **args, size_t nargs)
// determine whether `argt` is a valid argument type tuple for the given opaque closure method
JL_DLLEXPORT int jl_is_valid_oc_argtype(jl_tupletype_t *argt, jl_method_t *source)
Copy link
Member

Choose a reason for hiding this comment

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

This seems to assume that argt is a datatype, without checking?

Copy link
Member Author

Choose a reason for hiding this comment

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

jl_new_opaque_closure checks jl_is_tuple_type, and the other caller in codegen does as well.

LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
Instead allow specifying an argument tuple type separately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants