What things i can/cannot do within an extension?

the main thing that you can do in an extension is extend methods:
main pkg (A)

module A
  function f(x::Int) = "A.f on Int"
end

ABExt:

module ABExt
  function f(x::B.Thing) = "A.f on B.thing")
end

my main question is, what other things are allowed?

  • docs on extended methods: yes
  • __init__() ?
  • access to the extension variables ?
  • new exports ?
2 Likes