Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Re: Re: Incrementing a Hash Value

by marvell (Pilgrim)
on Jun 14, 2002 at 15:42 UTC ( [id://174582]=note: print w/replies, xml ) Need Help??


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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://174582]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-03-29 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found