[erlang-questions] How to dynamically compiled module?

Dmitry Kolesnikov dmkolesnikov@REDACTED
Mon Jan 7 13:20:05 CET 2013


Hi,

I looks like you are talking about global status. They do not exists but you can
 * use ets 
 * use a proc that holds them then foo:bar() -> gen_server:call(foo, bar).
 * use app environment 

- Dmitry


On Jan 7, 2013, at 11:47 AM, Solomon <solomon.wzs@REDACTED> wrote:

> I want to save a variable and number of threads would call it, but I don't want to save it in ets.
> 
> I want to dynamically compiled a module, when I call foo:bar(), it will return the variable directly.
> 
> How should I do?
> 
> (P.S. the variable like this: {#Fun<...>, <0.1.0>, ...})
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list