[erlang-questions] pattern matching with records in a function

Pablo Vieytes pablo.vb80@REDACTED
Tue Apr 10 12:13:39 CEST 2012


Hi,
I'm trying to use records in functions pattern matching but I'm not able. I
want something like that:

handle_cast(Msg = #inputmsg{_='_'}, State) ->
   do_something(Msg),
    {noreply, State};

Any idea?
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120410/2e51dd54/attachment.htm>


More information about the erlang-questions mailing list