Your own behaviours

Lennart Öhman lennart.ohman@REDACTED
Tue Sep 4 15:48:44 CEST 2001


Mandatory callback functions, among other things, are defined
in the module otp_internal. This module is used when compiling
modules having -behavior attribute.

If you wish to extend your OTP with your own behaviors, otp_internal
must (should) be changed.

My suggestion is that the functions in the otp_internal are changed to
look for the "answers" in the generic module corresponding
to the behaviour at hand. In this way you do not need to change
modules belonging to the original system. But instead only program
a set of required functions in any new behaviour you invent.

Best Regards,


Lennart Ohman                   phone   : +46-8-587 623 27
Sjoland & Thyselius Telecom AB  cellular: +46-70-552 6735
Sehlstedtsgatan 6               fax     : +46-8-667 8230
SE-115 28 STOCKHOLM, SWEDEN     email   : lennart.ohman@REDACTED

More information about the erlang-questions mailing list