[erlang-questions] Extending behaviours with -callback sytnax

Attila Rajmund Nohl <>
Tue Feb 7 15:47:00 CET 2012


Hello!

I have a behaviour which extends an other behaviour, so it's
behaviour_info function looks something like this:

behaviour_info(callbacks) ->
   parent_module:behaviour_info(callbacks) ++ [{some_fun,1}, ...].

In OTP R15B I'd like to use the -callback syntax to define the
functions in order to help dialyzer to find type problems. How can I
extend an other behaviour without copying and pasting it's callback
definitions?



More information about the erlang-questions mailing list