preservation of message order

Richard Carlsson <>
Wed Jan 29 16:54:40 CET 2003


On Wed, 29 Jan 2003, Ulf Wiger wrote:

> ... Still, since the
> 'global' reference manual doesn't specify what exactly goes
> on in global:send/2, I wouldn't presume that it guarantees
> ordering (even if the current _implementation_ does.)

Let me put it this way: I can't think of a good reason why
global:send/2 should ever need to first pass the message to
another process, instead of just performing a lookup followed
by a send (note that the lookup can be arbitrarily complicated
and involve any number of messages) - especially since it would
lose the nice ordering property and possibly break some existing
applications. So I think that it should be safe to actually put
this guarantee in the documentation for global.

	/Richard

Richard Carlsson ()   (This space intentionally left blank.)
E-mail: 	WWW: http://user.it.uu.se/~richardc/




More information about the erlang-questions mailing list