<html><head></head><body bgcolor="#FFFFFF"><div>Hi Sergey,</div><div><br></div><div>Dedicated module that holds types is your friend.<br><br>Sent from my iPhone</div><div><br>On 05.07.2012, at 16:07, Zhemzhitsky Sergey <<a href="mailto:Sergey_Zhemzhitsky@troika.ru">Sergey_Zhemzhitsky@troika.ru</a>> wrote:<br>
<br></div><div></div><blockquote type="cite"><div>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style>


<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi guys,</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">I have multiple .hrl files with multiple records. I’d like to define separate types for these records and their fields.
</span></p>
<p class="MsoNormal"><span lang="EN-US">These records will be used across multiple modules, and I’m wondering whether it is legal to define type specs in the hrl files?
</span></p>
<p class="MsoNormal"><span lang="EN-US">Or would it be better to have a separate module with exported common type specs?</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black">Best Regards,</span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="color:black">Sergey</span></p>
<p class="MsoNormal"> </p>
</div>

<p><span style="font-family:'Arial';font-size:8pt">_______________________________________________________</span></p>
<p><span style="font-family:'Arial';font-size:8pt"></span></p>
<p><span style="font-family:'Arial';font-size:8pt"> </span></p>
<p><span style="font-family:'Arial';font-size:8pt">The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. </span></p>

<p><span style="font-family:'Arial';font-size:8pt">If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to <a href="http://www.troika.ru/eng/Contacts/system.wbp">www.troika.ru/eng/Contacts/system.wbp</a>  </span></p>

<p><span style="font-family:'Arial';font-size:8pt"> </span></p>

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br>
<span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>