[erlang-questions] Fw: Newbie question

kevin.hostelley@REDACTED kevin.hostelley@REDACTED
Tue Jul 21 19:35:17 CEST 2009

> > I don't understand why the {data, Data} pattern isn't receiving the
> > message.  Can someone help me understand this?
> It is because Data is already bound to "ABC", so you try to match
> against {data, "ABC"}.
> Regards,
> Alpar

So "Data" is still in scope even though the receive ended?  If the receive
was inside a function, would the scope of "Data" be limited to that


Kevin Hostelley

***** PLEASE NOTE ***** This E-Mail/telefax message and any
documents accompanying this transmission may contain privileged
and/or confidential information and is intended solely for the
addressee(s) named above. If you are not the intended
addressee/recipient, you are hereby notified that any use of,
disclosure, copying, distribution, or reliance on the contents of
this E-Mail/telefax information is strictly prohibited and may
result in legal action against you. Please reply to the sender
advising of the error in transmission and immediately
delete/destroy the message and any accompanying documents. Thank

More information about the erlang-questions mailing list