<div dir="ltr">Some time after that discussion, the compiler was changed to warn only for those variables that occur in a pattern and are exported from an above case/if/receive/try. So you can export a variable from the clauses of a case and then use it in a computation without complaints from the compiler, but if you use it in a match, you get a warning because it's likely that you thought it was actually free.<div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">        /Richard</div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den fre 18 jan. 2019 kl 06:03 skrev Peter J Etheridge <<a href="mailto:petergi@iinet.net.au">petergi@iinet.net.au</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px"><div>Dear Erlangers,</div><div><br></div><div>in regard to exporting variables, is this still the case;</div><div><br></div><div><a href="http://erlang.org/pipermail/erlang-questions/2004-April/012104.html" target="_blank">http://erlang.org/pipermail/erlang-questions/2004-April/012104.html</a></div><div><br></div><div>thank you in advance,</div><div>Peter<br></div><br><br></div>
_______________________________________________<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" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>