[erlang-questions] dialyzer error: apply_op_not_a_variable

Kostis Sagonas kostis@REDACTED
Thu Oct 13 16:33:53 CEST 2011


On 10/13/11 16:52, Joel Reymont wrote:
> This is the problem
>
> 	({?MODULE, State})(Event, Bot)

Exactly what I wrote:

  >> Judging from the error, I am guessing that you most probably have
  >> some "old-style fun" application in your code.  Something of the
  >> form:
  >>
  >>    {M,F}(Arg1,...,ArgN)
  >>
  >> Change this to M:F(Arg1,...,ArgN) instead which is more kosher

Kostis



More information about the erlang-questions mailing list