[erlang-patches] Specification of beam_lib:cmp/2 return type
Raimo Niskanen
raimo+erlang-patches@REDACTED
Fri Jun 18 16:07:03 CEST 2010
On Thu, Jun 17, 2010 at 02:28:36PM +0200, Paul Guyot wrote:
> Hello,
>
> R14A's beam_lib(3) man page and beam_lib:cmp_rsn() type do not completely cover the actual return type of beam_lib:cmp/2.
>
> Indeed, beam_lib:cmp/2 can return {error, beam_lib, different_chunks} if there is a non-useless chunk (i.e. a chunk other than "CInf") in Beam1 that is not in Beam2, or reciprocally -- (cf beam_lib.erl, line 352).
>
> A patch for this specification is available here:
>
> git fetch git://github.com/pguyot/otp.git pg/beam_lib_cmp_2_return_type_specification
Thank you! It will be included in 'pu'.
>
> Regards,
>
> Paul
>
>
> ________________________________________________________________
> erlang-patches (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-patches-unsubscribe@REDACTED
>
--
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-patches
mailing list