Declaring Variables.

Mike Williams mike@REDACTED
Wed Jun 5 13:09:10 CEST 2002


In article <02060515163004.01235@REDACTED>,
 kchandrashekhar@REDACTED (K Chandra Shekhar) writes:

|> some variables form one p[roces to the other.....and i cant 
|> use the  "Proces ! {parameters} " feature.

Out of curiousity, why can you use Erlang's normal message passing?
The whole philosphy behind Erlang is to *avoid* having global variables.

The ets table solution is possible, but only as a last resort.
A more common solution is a client server solution where the server
is implemented as an erlang process which stores the global data.
OTP supports this as "gen_server" which is well documented in the
Erlang/OTP manuals.

/mike



More information about the erlang-questions mailing list