<div class="gmail_quote">On Tue, May 5, 2009 at 17:04, Giorgos Kollias <span dir="ltr"><<a href="mailto:gidiko@gmail.com">gidiko@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Erlang users,<br><br>Is there an option in the Erlang runtime to automatically delete a message that has been deposited into a process's mailbox as soon as a newer message with the same tag arrives? Is it easy to "patch" the Erlang language source code to support this "little" feature in case this is not there?<br>

<br></blockquote></div><br>Not so surprising: use another process!<br><br>Have it post a "i've got something for you, come and get it" message. It can then replace that "something" if a newer version of the "something" arrives before you have retrieved it. Then start over.<br>
<br>