Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8730657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:04:07+00:00 2026-06-13T09:04:07+00:00

The Erlang User’s Guide describes the send operator as 8.9 Send Expr1 ! Expr2

  • 0

The Erlang User’s Guide describes the send operator as

8.9 Send

Expr1 ! Expr2

Sends the value of Expr2 as a message to the process specified by
Expr1. The value of Expr2 is also the return value of the
expression.

Expr1 must evaluate to a pid, a registered name (atom), or a tuple
{Name,Node}
. Name is an atom and Node is a node name, also an
atom.

  • If Expr1 evaluates to a name, but this name is not registered, a badarg run-time error occurs.
  • Sending a message to a pid never fails, even if the pid identifies a non-existing process.
  • Distributed message sending, that is, if Expr1 evaluates to a tuple {Name,Node} (or a pid located at another node), also never
    fails.

In the case of distributed message sending, it is not clear to me what the first atom represents in {Name,Node} from the code of the remote node or process.

Your help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:04:08+00:00Added an answer on June 13, 2026 at 9:04 am

    The grammar is a bit ambiguous in the sentence you’re citing. The three options are:

    • A process ID, which is an opaque data type returned from certain Erlang functions, primarily spawn and spawn_link.
    • A registered name on the local node (i.e., the local VM). An example of where this would be needed would be a long-running server application, where you want processes to be able to communicate with a key utility service, such as a DNS cache.
    • A tuple containing both a registered name and the name of the node it lives on (if another VM, potentially on a different host).

    The first is by far the most common. Registered names are intended to be used judiciously.

    I’d recommend starting with the concurrency chapter from Learn You Some Erlang, and backtracking as necessary to earlier chapters:
    http://learnyousomeerlang.com/the-hitchhikers-guide-to-concurrency#dont-panic

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I see that Erlang Efficiency User's Guide Section 5.3 recommends leaving the non-flat list
I have an Erlang system that runs user specified programs on many machines. It
In Erlang is there any way that a message sender can wait on a
We used Erlang/Cowboy to develop a simple chatting service based on WebSockets. When user
Till yesterday, I was a happy user of out-of-the-box emacs + erlang-mode. Then my
I create sqlite db with Erlang: sqlite3:open(user_db, [in_memory]), TableInfo = [{user, text, [not_null]}, {password,
I am in the process of designing an Erlang/OTP application which will expose its
I have erlang application. In this application i run process with spawn(?MODULE, my_foo, [my_param1,
I'm building an erlang server. Users sends http requests to the server to update
I'm using Mnesia with Erlang, but this question applies to any key-value db like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.