[erlang-questions] dialyzer error: apply_op_not_a_variable

Joel Reymont joelr1@REDACTED
Thu Oct 13 18:36:29 CEST 2011

On Oct 13, 2011, at 5:33 PM, Richard Carlsson wrote:

> On 10/13/2011 03:52 PM, Joel Reymont wrote:
>> This is the problem
>> 	({?MODULE, State})(Event, Bot)
> If your snippet above is literally what's in your code, then you're doing something even stranger: having a module create an instance of itself (the tuple) and then call a function on that instance. Don't abuse the current underlying mechanism - if you want to use parameterized modules, then declare them as such:

All I'm doing is ?MODULE:State(Event, Bot)

- for hire: mac osx device driver ninja, kernel extensions and usb drivers
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont

More information about the erlang-questions mailing list