# Contextual dispatch on Julia 1.12?

**URL:** <https://discourse.julialang.org/t/contextual-dispatch-on-julia-1-12/124535>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [January 8, 2025, 11:28am UTC](https://discourse.julialang.org/t/contextual-dispatch-on-julia-1-12/124535 "2025-01-08T11:28:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MilesCranmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milescranmer/32/21070_2.png) [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Post date:** [January 8, 2025, 11:28am UTC](https://discourse.julialang.org/t/contextual-dispatch-on-julia-1-12/124535/1 "2025-01-08T11:28:50Z")

</div>

Apparently Cassette.jl is broken on Julia 1.12. I was wondering if anyone knows of another way to get contextual dispatch in upcoming Julia versions?

This is to support writing a borrow checker for Julia: [Package for Rust-like borrow checker in Julia? - #78 by MilesCranmer](https://discourse.julialang.org/t/package-for-rust-like-borrow-checker-in-julia/124442/78) which contextual dispatch appears to be the perfect tool for.

cc @mbauman @Mason

---

<div class="post-metadata">

**Author:** ![MilesCranmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/milescranmer/32/21070_2.png) [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Post date:** [January 8, 2025, 11:36am UTC](https://discourse.julialang.org/t/contextual-dispatch-on-julia-1-12/124535/2 "2025-01-08T11:36:21Z")

</div>

I found [GitHub - JuliaDebug/CassetteOverlay.jl: An experimental simple method overlay mechanism for Julia](https://github.com/JuliaDebug/CassetteOverlay.jl) which looks like a possibility. However I’m not sure if it lets us “overdub” _any_ method, or just the ones in a provided method table?
