On 24/11/2007, <b class="gmail_sendername">Ciprian Dorin Craciun</b> <<a href="mailto:firstname.lastname@example.org">email@example.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> For example what if I want to create a special purpose receive<br>that has a default pattern that just removes the unmatched messages,<br>but allows me to have unlimited number of patterns? Can I achieve this<br>with the current macro system? (In your case the macro system should
<br>allow me to declare a macro with variable number of arguments.)<br><br> Ciprian.</blockquote><div><br>You can't do this with the current macro package. But as you probably understand it based more on C-macros than lisp macros. It also allows you some cool things which lisp macros can't do, for example expand patterns and insert values anywhere.
<br><br>You would probably actually need something which is a combination of both. If you were doing it in Erlang syntax something with a parse transform would do the trick. But working on Erlang syntax code is messy.<br>
<br>They are actually a terrible hack. :-)<br><br>Robert<br><br></div></div>