extending standard behaviours
Tue Apr 16 18:33:00 CEST 2002
On Tue, 16 Apr 2002 06:48:27 -0400
Vance Shipley <vances@REDACTED> wrote:
> What would be the best way to extend standard behaviours?
My initial feeling would be: create another behaviour.
Writing a module which conforms to a behaviour, is a case of the
'specialization' pattern. There's nothing saying that this module can't
be, itself, a behaviour as well, and offhand that sounds like what you
> For example I have created a module using the gen_fsm
> behaviour which implements a state machine. There are a
> number of different versions of this, with different numbers
> of states. The mandatory callbacks are common between all
> versions (e.g. handle_event, handle_info, init, etc.).
> Vance Shipley
> Motivity Telecom Inc.
> +1 519 579 5816
More information about the erlang-questions