Commit a46aa55
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
```
(cherry picked from commit b18ca0f)1 parent 14753c9 commit a46aa55
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
0 commit comments