[erlang-questions] behaviour X undefined
Loïc Hoguin
essen@REDACTED
Fri Jun 24 15:56:04 CEST 2011
On 06/24/2011 01:53 PM, Joel Reymont wrote:
> Why is this happening?
>
> make
> ==> getopt (compile)
> Compiled src/getopt.erl
> ==> openpoker (compile)
> Compiled src/limit.erl
> Compiled src/exch.erl
> ...
> src/tourney.erl:22: Warning: behaviour exch undefined
>
> The top of exch.erl looks like this
>
> -module(exch, [Cbk, Context, Modules]).
I don't think an evil parameterized module can be used as a behaviour;
the behaviour_info/1 function will be undefined because you're
implicitly adding 3 parameters to it.
--
Loïc Hoguin
Dev:Extend
More information about the erlang-questions
mailing list