You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/elixir/lib/kernel/special_forms.ex
+9
Original file line number
Diff line number
Diff line change
@@ -1786,6 +1786,15 @@ defmodule Kernel.SpecialForms do
1786
1786
1787
1787
&local_function/1
1788
1788
1789
+
Note that `&local_function/1` creates a local capture, but
1790
+
`&__MODULE__.local_function/1` or `&imported_function/1` create a remote
1791
+
capture. For more information, refer to the ["Functions" section in the Erlang Reference Manual](https://www.erlang.org/doc/system/eff_guide_functions.html#function-calls).
1792
+
1793
+
Whether a capture is local or remote has implications when using hot code
1794
+
reloading: local captures dispatch to the version of the module that existed
1795
+
at the time they were created, while remote captures dispatch to the current
0 commit comments