<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Simon -<br>
<br>
These examples might be helpful to you (but no guarantee for the "goodness"):<br>
<br>
<a href="https://github.com/norton/gen-ets/blob/master/src/gen_ets.erl" target="_blank">https://github.com/norton/gen-ets/blob/master/src/gen_ets.erl</a><br>
<a href="https://github.com/norton/lets/blob/master/src/lets.erl" target="_blank">https://github.com/norton/lets/blob/master/src/lets.erl</a><br>
<br>
I'd also recommend using find and grep to search for the "-spec" directive in the Erlang/OTP code base itself.<br>
<br>
<a href="https://github.com/erlang/otp" target="_blank">https://github.com/erlang/otp</a><br>
<br>
You should find plenty of examples.<br>
<br></blockquote><div><br></div><div>This is how I learned -spec directives. I thought that there is somewhere secret pdf that has full specification for -spec =)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


regards,<br>
<br>
Joe N.</blockquote></div>