[erlang-questions] Parameterized module initialization

Zhemzhitsky Sergey Sergey_Zhemzhitsky@REDACTED
Tue Jun 26 13:09:48 CEST 2012

Hi there,

I’d like to use parameterized module to save some readonly staff and use it later at every function call.

As I understand the compiler implicitly makes every function have parameters of the module, so even the function with zero arguments will be exported as a function with arity that corresponds to the number of module parameters.

Is it possible to have a function in a parameterized module that can be exported without any parameters of the module?

Best Regards,


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. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120626/9eb635d6/attachment.htm>

More information about the erlang-questions mailing list