Avoid newbie record redundancy?

Andrew Lentvorski bsder@REDACTED
Sat May 27 22:06:46 CEST 2006


Stephen Han wrote:
> Hi
> 
> I am not sure whether I understand your question or not but do you want
> something like this?
> 
> match_queue(MasterQueue) ->
> receive
>   { msgPeerMaster, A } when is_record(A,rcdPeerMaster) ->
>      match_queue(queue:in(A, MasterQueue));
>   _ ->
>      ?elog("HELP!~n", [])
>    end.

Yes.  That's exactly what I wanted.

Thanks,
-a



More information about the erlang-questions mailing list