in reply to Re: Re: Re: Incrementing a Hash Value
in thread Incrementing a Hash Value

That sounds well defined to me. If it has a predicible behaviour, even if it's not useful, it's defined.

I must be missing something.

--
Steve Marvell

  • Comment on Re: Re: Re: Re: Incrementing a Hash Value

Replies are listed 'Best First'.
Re: Incrementing a Hash Value
by Abigail-II (Bishop) on Jun 14, 2002 at 15:53 UTC
    But it isn't well defined. In
    $i = $i ++;
    you do not know whether the assignment will happen before, or after the increment.

    Abigail

      There is no good reason why that is undefined, if perl has one source code and C has no eval type function.

      --
      Steve Marvell

        There are very good reasons to let things undefined. If you specify things, it's hard to change the behaviour. Undefined behaviour can change (and history has shown that it does).

        Perl doesn't have one source code, I've 192 versions of Perl installed on my computer - all with a different source code.

        Abigail