[erlang-questions] variable exported from case in OTP 18

Richard A. O'Keefe ok@REDACTED
Fri Oct 2 06:10:32 CEST 2015


On 2/10/2015, at 3:24 pm, Richard A. O'Keefe <ok@REDACTED> wrote:
>    whenever the left hand side is defined.  But in Pascal,
>       (-2) div 3 = 0
>       (-2) mod 3 = 1
>      ((-2) div 3)*3 + (-2) mod 3 = 1 /= -1.

That should of course be ((-2) div 3)*3 + (-2) mod 3 = 1 /= -2.
Sigh.




More information about the erlang-questions mailing list