[erlang-questions] syntax problem

J Bhanot <>
Tue Apr 22 15:13:46 CEST 2008


Hi,


In following code:

 cNode=nodes(connected),  %gives node connected to e6 - should get 
 here
  cNode=hd(Nodes),
 {any, [cNode]}!{Msgtype,AcReply}.   % have tried it with {any, 
cNode}!{Msgtype,AcReply}. but got the error

I am getting - 
{error,{{},

but when I am hardcoding it as 

  {}!{Msgtype,AcReply}.

It is working fine...

What could be the problem in first scenario

Thanking in anticipation

Regards,
jb
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080422/5a44c77c/attachment.html>


More information about the erlang-questions mailing list