bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arithmetic expression: recursive VAR evaluation suppresses desired V


From: Robert Elz
Subject: Re: Arithmetic expression: recursive VAR evaluation suppresses desired VAR assignment
Date: Thu, 11 Aug 2022 23:10:19 +0700

    Date:        Thu, 11 Aug 2022 16:22:12 +0200
    From:        Steffen Nurpmeso <steffen@sdaoden.eu>
    Message-ID:  <20220811142212.JhlPJ%steffen@sdaoden.eu>


  |  |> Hm.  Well i agree that precedence rules which loose a construct
  |  |> completely (in that =5 is lost in I=5?I:J) is weird, but other

I seem to have lost/missed whatever message that was originally in, but
nothing is lost there

        I=5?I:J
is
        I = ( 5 > I : J )

and since 5 is true, that amounts to

        I = I

There's nothing weird about that at all, no more than

        3+2 * 7

giving 17, rather than 35 is weird.   Precedence matters.

kre





reply via email to

[Prev in Thread] Current Thread [Next in Thread]