<div>Hi</div>
<div> </div>
<div>I am not sure whether I understand your question or not but do you want something like this?</div>
<div> </div>
<div>match_queue(MasterQueue) -><br>receive<br> { msgPeerMaster, A } when is_record(A,rcdPeerMaster) -><br> match_queue(queue:in(A, MasterQueue));<br> _ -><br> ?elog("HELP!~n", [])<br> end.
</div>
<div> <br>regards,<br> </div>
<div><span class="gmail_quote">On 5/27/06, <b class="gmail_sendername">Andrew Lentvorski</b> <<a href="mailto:bsder@allcaps.org">bsder@allcaps.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">This is almost certainly a newbie question. I have the following code:<br><br>match_queue(MasterQueue) ->
<br> receive<br> {msgPeerMaster,<br> #rcdPeerMaster{returnSocket=Socket, masterIP=MasterIP, masterPort=MasterPort}} -><br> QItem = #rcdPeerMaster{returnSocket=Socket, masterIP=MasterIP, masterPort=MasterPort},
<br> match_queue(queue:in(QItem, MasterQueue));<br> _ -><br> ?elog("HELP!~n", [])<br> end.<br><br>Is it possible to still do the match on rcdPeerMaster while not<br>unpacking and then repacking everything? That seems like a lot of
<br>needlessly duplicated code.<br><br>Thanks,<br>-a<br></blockquote></div><br>