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

Only what the standard, or the documentation, guarantees is valid to count on. Everything else should be considered a quirk of the implementation.

Shouldn't there be a lot more documentation, then? Increments and decrements are not the only things being documented vaguely.

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

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

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Incrementing a Hash Value
by Elian (Parson) on Jun 14, 2002 at 19:47 UTC
    Yep, there should be, or at least more specific docs on how things should act. Perl is awfully fuzzy about the behaviour of a lot of things. (Witness the fact that perl only recently nailed down the behaviour of numeric operations)

    As a for example, in this:

    $a = $a + $a++;
    what should $a equal at the end? And if $a is tied or overloaded, what order should the tie/overload stuff be called in?