user and server unbound variables

Sean Hinde Sean.Hinde@REDACTED
Wed Dec 18 14:05:23 CET 2002


user and server are atoms (or fixed labels) not variable names - Variable
names start with a Capital letter in Erlang.
 
The line of code says that you wish to create a new erlang process which
will execute the function server(Pid) in the module user when it has
started. Pid here will be set to the value of self() which is the process ID
of the process it is executed in (in this case the process calling the
spawn_link function). I guess this means that the new process needs to be
able to send replies to the original process.
 
The first part of the Erlang Book pdf covers this stuff very nicely:
 
www.erlang.org/download/erlang-book-part1.pdf
<http://www.erlang.org/download/erlang-book-part1.pdf> 
 
Sean

-----Original Message-----
From: Eduardo Figoli [mailto:eduardo@REDACTED]
Sent: 18 December 2002 17:28
To: erlang-questions@REDACTED
Subject: user and server unbound variables


 
Good morning,
 
What does spawn_link(user, server, [self()]) mean ?
I get this line from the code attached (telnet to erlang console).
I don't know from where do user and server variables come from.
 
Thanks,
Eduardo Figoli
 
 
 




NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.




More information about the erlang-questions mailing list