sends don't block, right?

Vlad Dumitrescu <>
Wed Feb 25 15:12:47 CET 2004


From: "Joe Armstrong" <>
>   If we make the following one line addition to erl_parse.yrl:
>
>   expr_100 -> expr_150 '!' '!' expr_100:
>      {call, line('$1'),{atom, line('$1'), rpc},['$1', '$4']}.
>
>   Then A !!  B just gets expanded into the  *local* function rpc(A, B)
> and  the user is  free to  add their  own definition  of rcp/2  to the
> module concerned.

Mmm, yes, but IMHO this makes the semantics of !! not so easy to grasp. Having a
local definition helps (because of the locality) but one still has to check what
it means.

/Vlad




More information about the erlang-questions mailing list