[erlang-questions] *current* value?

YC yinso.chen@REDACTED
Wed Oct 17 20:56:22 CEST 2007


On 10/17/07, David King <dking@REDACTED> wrote:
>
> > No, he's saying that usually you write programs like this:
>
> > So that all of the state is encased in the arguments, rather than
> > putting some in the process dictionary.
>

Okay, that I understand - process dictionary is discouraged in Erlang, Joe
states so in his book.  He did, however, says this in the book:

One form of usage that I do approve of is to use the processes dictionary to
store "write-once" variables.

Anyhow - I'm simply trying to see if there are other ways besides process
dictionary to simulate "current" variables.  Seems like there is not.

Thanks,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20071017/80c278d3/attachment.htm>


More information about the erlang-questions mailing list