<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yes, of course :-)<div><br></div><div>Not sure what I was drinking...</div><div><br></div><div>/Tony</div><div><br><div><div>On 4 jan 2013, at 20:55, Erik Søe Sørensen <<a href="mailto:eriksoe@gmail.com">eriksoe@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">[forgot to write the list]<br><br>That would be<br><div class="gmail_quote"> receive TheMsg when TheMsg=:=Msg -> ok end<br>(or shorter but perhaps less clear:<br> receive Msg -> ok end<br>where Msg is already bound)<br>
assuming of course that you won't be trying to remove the non-first copy of a specific message - but given that you say you're trying to emulate the receive expression, and that doesn't allow it, then the above should be what you want.<br>
<br><div class="gmail_quote">2013/1/4 Aggelos Giantsios <span dir="ltr"><<a href="mailto:aggelgian@gmail.com" target="_blank">aggelgian@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
Happy New Year to everyone!<br><br>I am trying to simulate the 'receive' expression behaviour.<br>I access the process message queue with erlang:process_info(self(), messages).<br>Assuming I have selected a message Msg which is at position k in the message list and have safely stored it in a variable,<br>
is there a way to manually remove Msg from the process message queue?<br><br>Thanks,<br>Aggelos<br><br>
<br></div></div><div class="im">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></div></blockquote></div><br>
</div><br>
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">"Installing applications can lead to corruption over time. </span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; "><br></span></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>