[erlang-questions] module syntax help

Steve Davis steven.charles.davis@REDACTED
Tue Apr 14 00:11:36 CEST 2009


Followup question:

If you call new twice, e.g.

1> P = mymodule:new(Params).
2> P = mymodule:new(Params).

I'd be right in thinking that P is exactly the same instance of the
parameterized module, correct?

i.e. if I call mymodule:new(Params) with the same parameters 100000
times there's no memory (or otherwise) impact on the VM?

/s




On Apr 13, 4:09 am, Lev Walkin <v...@REDACTED> wrote:
> Easy one:
>
> http://www.google.com/search?q=parameterized+modules+erlang
>
> 人间世 wrote:
> > code get from openpoker:"-module(exch, [Cbk, Context, Modules])."
> > What's it mean?Is it correct module syntax?thank!
>
> > ------------------------------------------------------------------------
>
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questi...@REDACTED
> >http://www.erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@REDACTED://www.erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list