system messages (Re: Suggested Example/ emacs questions)

Ulf Wiger <>
Tue Oct 10 11:53:02 CEST 2000

OK, I don't know why I included put() -- I don't want that either.
get() has no side-effects, though. That's the one I want.


On 10 Oct 2000, Torbjorn Tornkvist wrote:

>> Since get() and put() are O(1) nowadays, why can't I use them in
>> guards?
>But wouldn't that give us strange side-effects ?
>What happends if a put, is executed (left-to-right) 
>but later (furter-to-the-right) the clause match fails ?
>Also, a clause may now match, not only based on its input
>arguments but alos on what get() may return, which I
>think is highly undesirable.
>Cheers /Tobbe

Ulf Wiger                                    tfn: +46  8 719 81 95
Network Architecture & Product Strategies    mob: +46 70 519 81 95
Ericsson Telecom AB,              Datacom Networks and IP Services
Varuvägen 9, Älvsjö,                    S-126 25 Stockholm, Sweden

More information about the erlang-questions mailing list