Records & pattern matching

Sean Hinde sean.hinde@REDACTED
Mon Apr 17 05:41:12 CEST 2006


#record{name = "Me"} = #record{name = "Me", answered = "You"}.

or was that not the question?

Sean

On 17 Apr 2006, at 03:19, Jérémie Lumbroso wrote:

> Hello,
>
> I am trying to do a regular pattern matching using the #record{name  
> = "Me", _='_'} construct to do regular pattern matching. But it  
> does not seem to work as expected (I am not using the match_object  
> method of anything). Am I obligated to explicitly define my tuplet  
> for the pattern matching, i.e. do {record, _, _, _, "Me", _}?
>
> Regards,
>
> Jérémie




More information about the erlang-questions mailing list