[erlang-questions] syntax problem
Richard Carlsson
richardc@REDACTED
Tue Apr 22 16:00:14 CEST 2008
Oops. This is more like it:
< cNode=nodes(connected), %gives node connected to e6
< cNode=hd(Nodes),
< {any, [cNode]}!{Msgtype,AcReply}.
----
> Nodes=nodes(connected), %gives nodes connected to e6
> Node=hd(Nodes),
> {any, [Node]}!{Msgtype,AcReply}.
Variables can't begin with lowercase. But also, you can't
assign to the same variable twice, so Nodes and Node must
be different variables.
/Richard
More information about the erlang-questions
mailing list