An does anybody know what would it take to make this feature official/supported? It is really useful in some cases.<br><br><br><div class="gmail_quote">On Sun, Jun 29, 2008 at 6:34 PM, Ulf Wiger <<a href="mailto:ulf@wiger.net">ulf@wiger.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">That's an example of parameterized modules, which is an experimental<br>
and unsupported feature in Erlang.<br>
<br>
<a href="http://www.planeterlang.org/story.php?title=The_black_art_of_Erlangs_parameterized_modules" target="_blank">http://www.planeterlang.org/story.php?title=The_black_art_of_Erlangs_parameterized_modules</a><br>
<div class="Ih2E3d"><a href="http://www.erlang.se/workshop/2003/paper/p29-carlsson.pdf" target="_blank">http://www.erlang.se/workshop/2003/paper/p29-carlsson.pdf</a><br>
<br>
</div>BR,<br>
Ulf W<br>
<div class="Ih2E3d"><br>
2008/6/29 Tom Ayerst <<a href="mailto:tom.ayerst@gmail.com">tom.ayerst@gmail.com</a>>:<br>
</div><div><div></div><div class="Wj3C7c">> Is was looking at the mochiweb code and I saw some oddities.<br>
><br>
> firstly the module statement:<br>
> -module(mochiweb_request, [Socket, Method, RawPath, Version, Headers]).<br>
><br>
> In the use of mochiweb I can see things like Req:get(method).<br>
><br>
> This looks more like an object method call, is this new? I cannot see an<br>
> docs about it.<br>
><br>
> Thanks for any info.<br>
><br>
> Tom Ayerst<br>
><br>
> In the example Req ={mochiweb_request,#Port<0.142>,'GET',<br>
> "/",<br>
> {1,1},<br>
> {9,<br>
> {"host",<br>
> {'Host',"<a href="http://127.0.0.1:8888" target="_blank">127.0.0.1:8888</a>"},<br>
> {"accept",<br>
> {'Accept',<br>
><br>
> "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},<br>
> nil,<br>
> {"accept-language",<br>
> {'Accept-Language',<br>
> "en-gb,en;q=0.5"},<br>
> {"accept-encoding",<br>
> {'Accept-Encoding',<br>
> "gzip,deflate"},<br>
> {"accept-charset",<br>
> {'Accept-Charset',<br>
><br>
> "ISO-8859-1,utf-8;q=0.7,*;q=0.7"},<br>
> nil,nil},<br>
> nil},<br>
> {"connection",<br>
> {'Connection',"keep-alive"},<br>
> {"cache-control",<br>
><br>
> {'Cache-Control',"max-age=0"},<br>
> nil,nil},<br>
> nil}}},<br>
> {"user-agent",<br>
> {'User-Agent',<br>
> "Mozilla/5.0 (Windows; U;<br>
> Windows NT 6.0; en-GB; rv:1.9) Gecko/2008052906 Firefox/3.0"},<br>
> {"keep-alive",<br>
> {'Keep-Alive',"300"},<br>
> nil,nil},<br>
> nil}}}}<br>
><br>
</div></div><div><div></div><div class="Wj3C7c">> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br>