behaviours

Fredrik Linder fredrik.linder@REDACTED
Thu Jul 31 16:55:29 CEST 2003


> From: owner-erlang-questions@REDACTED
> [mailto:owner-erlang-questions@REDACTED]On Behalf Of Thomas Lindgren
>
> A second approach: you specify "-behaviour(B, Vsn)."
> when you don't want the latest one, and extend the
> behaviour definition with:
>
> behaviour_info({callbacks, Vsn}) -> ...
>
> for the legacy cases. The behaviour checker has to be
> extended to make the right calls.

Actually, shouldn't the version ALWAYS be there? Stating which version of
the behaviour the code actually was written for.

/Fredrik




More information about the erlang-questions mailing list