[erlang-questions] DOWN record

Ulf Wiger <>
Thu Jun 17 12:11:00 CEST 2010


I don't, but I can't explain why I don't...

Are you getting ready to advocate a hrl file provided
by OTP, listing record defs for common OTP messages,

- #'DOWN'{}
- #system{}
- #'EXIT'
- ...

I would definitely support that.

BR,
Ulf W

Tony Rogvall wrote:
> Hi list.
> 
> A quick survey.
> 
> Are there more people than me that sometimes define the record:
> 
> -record('DOWN',
> 	{
> 	  ref,   %% monitor reference
> 	  type,  %% type of object 'process'
> 	  id,    %% object id (pid)
> 	  reason %% reason for termination
> 	 }).
> 
> ?
> 
> To simplify matching of 'DOWN' messages ?
> Example:
> 
> handle_info(#'DOWN' { ref=Ref }, State) ->
> 	...
> 
> 
> /Tony
> 
> 
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
> 


-- 
Ulf Wiger
CTO, Erlang Solutions Ltd, formerly Erlang Training & Consulting Ltd
http://www.erlang-solutions.com
---------------------------------------------------

---------------------------------------------------

WE'VE CHANGED NAMES!

Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.

www.erlang-solutions.com



More information about the erlang-questions mailing list