[erlang-questions] Process scope variable

Imants Cekusins imantc@REDACTED
Tue Feb 17 15:18:27 CET 2015

> Why not a() -> 10.
> b() -> a() + 1.

Let's say, there is a long chain of function calls. Some of them need
A, some of them don't.

Let A be clearly static, defined early in the process.

Using process dict, I will pass only relevant vars from fun to fun,
not messages to some other funs down the line.

More information about the erlang-questions mailing list