There was an error while loading. Please reload this page.
1 parent 784db65 commit 45ef8fdCopy full SHA for 45ef8fd
1 file changed
lib/elixir/lib/module.ex
@@ -366,7 +366,8 @@ defmodule Module do
366
Unlike other hooks, `@on_definition` will only invoke functions and
367
never macros. This is to avoid `@on_definition` callbacks from
368
redefining functions that have just been defined in favor of more
369
- explicit approaches.
+ explicit approaches. They are also invoked in the reverse order of
370
+ registration.
371
372
When just a module is provided, the function is assumed to be
373
`__on_definition__/6`.
0 commit comments