The module lib
provides the following useful library functions.
Flushes the message buffer of the current process.
Prints error message Args
in accordance with
Format
in the normal way.
Returns the name of the script that starts the current Erlang session.
Removes the last newline character, if any, in List
.
This function to makes it possible to send a message through
apply
.
As send/2
, but waits for an answer. It is implemented
as follows:
sendw(To, Msg) -> To ! {self(),Msg}, receive Reply -> Reply end.
The message returned is not necessarily a reply to the message sent.
This module is retained for compatibility. It may disappear without warning in a future release.