This module is retained for backward compatibility. It can disappear without warning in a future Erlang/OTP release.
Prints error message
Flushes the message buffer of the current process.
Removes the last newline character, if any, in
Returns the name of the script that started the current Erlang session.
Makes it possible to send a message using the
As
sendw(To, Msg) ->
To ! {self(),Msg},
receive
Reply -> Reply
end.
The returned message is not necessarily a reply to the sent message.