Skip to content

Commit a46aa55

Browse files
vtjnashKristofferC
authored andcommitted
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

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

base/public.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public
5252
active_project,
5353

5454
# Reflection and introspection
55-
get_extension,
5655
isambiguous,
5756
isexpr,
5857
isidentifier,

0 commit comments

Comments
 (0)