You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be useful if methodinstance could work with any method table, not just the global default one.
The version that takes a worldage is easy, it just needs to become
functionmethodinstance(ft::Type, tt::Type, world::Integer; methodtable=nothing)
sig =typed_signature(ft, tt)
match, _ = CC._findsup(sig, methodtable, world)
match ===nothing&&throw(MethodError(ft, tt, world))
mi = CC.specialize_method(match)
return mi::MethodInstanceend
but I tried to do it in the generated function version and I couldn't figure out how to get it to work properly without segfaulting, so any hints or help on making that work would be much appreciated.
The text was updated successfully, but these errors were encountered:
It'd be useful if
methodinstance
could work with any method table, not just the global default one.The version that takes a worldage is easy, it just needs to become
but I tried to do it in the generated function version and I couldn't figure out how to get it to work properly without segfaulting, so any hints or help on making that work would be much appreciated.
The text was updated successfully, but these errors were encountered: