<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=713520112-01062004><FONT face=Arial color=#0000ff size=2>If the
-behaviour() attribute is present, the linter checks whether
the</FONT></SPAN></DIV>
<DIV><SPAN class=713520112-01062004><FONT face=Arial color=#0000ff
size=2>exported functions required by the given behaviour are in fact
present</FONT></SPAN></DIV>
<DIV><SPAN class=713520112-01062004><FONT face=Arial color=#0000ff size=2>in the
module. If not, the linter issues a warning for each missing
function.</FONT></SPAN></DIV>
<DIV><SPAN class=713520112-01062004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=713520112-01062004><FONT face=Arial color=#0000ff size=2>The
set of functions to be exported for a given behaviour is
specified</FONT></SPAN></DIV>
<DIV><SPAN class=713520112-01062004><FONT face=Arial color=#0000ff
size=2>by Behaviour:behaviour_info(callbacks) -- for example,
</FONT></SPAN></DIV>
<DIV><SPAN class=713520112-01062004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=713520112-01062004><FONT face=Arial color=#0000ff size=2>1>
gen_server:behaviour_info(callbacks).<BR>[{init,1},<BR> {handle_call,3},<BR> {handle_cast,2},<BR> {handle_info,2},<BR> {terminate,2},<BR> {code_change,3}]<BR></FONT></SPAN></DIV>
<DIV><SPAN class=713520112-01062004><FONT face=Arial color=#0000ff
size=2>/Uffe</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
owner-erlang-questions@erlang.org
[mailto:owner-erlang-questions@erlang.org]<B>On Behalf Of </B>Inswitch
Solutions - Erlang Evaluation<BR><B>Sent:</B> den 1 juni 2004
13:55<BR><B>To:</B> erlang-questions@erlang.org<BR><B>Subject:</B> Behaviour
module attribute meaning<BR><BR></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Does someone know what the behaviour module
attribute do?</FONT></DIV>
<DIV><FONT face=Arial size=2>I have a GEN_FSM callback module without
"-behaviour(gen_fsm)." attribute and it works.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2>Eduardo Figoli</FONT></DIV>
<DIV><FONT face=Arial size=2>INSwitch Solutions</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV></BLOCKQUOTE></BODY></HTML>