Skip to content

Commit b18ca0f

Browse files
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

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
@@ -54,7 +54,6 @@ public
5454
active_project,
5555

5656
# Reflection and introspection
57-
get_extension,
5857
isambiguous,
5958
isexpr,
6059
isidentifier,

0 commit comments

Comments
 (0)