Commit b18ca0f
authored
Revert "Base.get_extension made public" (#59593)
Reverts #58108. It is not allowed for packages to call
`Base.get_extension`, so it should never have been made public.
Something simply being documented in the manual is never any allowable
argument for making something public.
The correct way to use this functionality is with dispatch. Loosely:
```julia
module Main
function get_extension end
end
module MainPkgExt # extension module in Main
using Other
Main.get_extension(args...) = Other.call(args...)
end
```1 parent 42a33bb commit b18ca0f
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
0 commit comments