Behaviour module attribute meaning

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Tue Jun 1 14:07:36 CEST 2004


If the -behaviour() attribute is present, the linter checks whether the
exported functions required by the given behaviour are in fact present
in the module. If not, the linter issues a warning for each missing function.
 
The set of functions to be exported for a given behaviour is specified
by Behaviour:behaviour_info(callbacks) -- for example, 
 
1> gen_server:behaviour_info(callbacks).
[{init,1},
 {handle_call,3},
 {handle_cast,2},
 {handle_info,2},
 {terminate,2},
 {code_change,3}]

/Uffe

-----Original Message-----
From: owner-erlang-questions@REDACTED [mailto:owner-erlang-questions@REDACTED]On Behalf Of Inswitch Solutions - Erlang Evaluation
Sent: den 1 juni 2004 13:55
To: erlang-questions@REDACTED
Subject: Behaviour module attribute meaning


 
Does someone know what the behaviour module attribute do?
I have a GEN_FSM callback module without "-behaviour(gen_fsm)." attribute and it works.
 
 
thanks in advance,
Eduardo Figoli
INSwitch Solutions
 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20040601/e48498ed/attachment.htm>


More information about the erlang-questions mailing list