File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11
11
* deprecations
12
12
* [ Kernel] Tidy up and clean ` quote ` API
13
13
* [ Kernel] Old ` :local.(args) ` syntax is deprecated
14
+ * [ Process] ` Process.self ` is deprecated in favor ` Kernel.self `
14
15
15
16
# v0.8.0 (2013-01-28)
16
17
Original file line number Diff line number Diff line change @@ -80,7 +80,10 @@ defmodule Node do
80
80
end
81
81
82
82
@ doc """
83
- Establishes a connection to Node. Returns true if successful, false if not, and ignored if the local node is not alive.
83
+ Establishes a connection to Node. Returns true if successful,
84
+ false if not, and the atom `:ignored` if the local node is not
85
+ alive.
86
+
84
87
See http://erlang.org/doc/man/net_kernel.html#connect_node-1 for more info.
85
88
"""
86
89
@ spec connect ( t ) :: boolean | :ignored
Original file line number Diff line number Diff line change @@ -19,11 +19,10 @@ defmodule Process do
19
19
:erlang . is_process_alive ( pid )
20
20
end
21
21
22
- @ doc """
23
- Returns the current process.
24
- """
25
- @ spec self :: pid
22
+ @ doc false
26
23
def self do
24
+ IO . puts "Process.self is deprecated, please use Kernel.self instead"
25
+ Exception . print_stacktrace
27
26
:erlang . self ( )
28
27
end
29
28
You can’t perform that action at this time.
0 commit comments