Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: Order of execution of functions in list ( \(shift @_ ) reference to alias \$_[0] references original )

by Anonymous Monk
on Sep 16, 2013 at 03:12 UTC ( #1054212=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Order of execution of functions in list
in thread Order of execution of functions in list

It's an emergent behaviour; it's not by design.

What's that mean (important why)?

It goes back far enough (5.8 at least) and its in t/op/sub_lval.t update: since 2001

so it emerged? long ago :)

OTOH, a reference to an alias takes a reference to the original and incrementing tat referenced value increments the original -- can't see any aliasing magic being preserves, references reference


Comment on Re^5: Order of execution of functions in list ( \(shift @_ ) reference to alias \$_[0] references original )
Re^6: Order of execution of functions in list ( \(shift @_ ) reference to alias \$_[0] references original )
by ikegami (Pope) on Sep 20, 2013 at 18:25 UTC

    To design something means you've chosen how it behaves. If something is not the result of design, it means noone chose to have it behave in that particular fashion. The behaviour merely emerged. This means no analysis of the behaviour was performed, so it may not be a desired behaviour.

    so it emerged? long ago :)

    Sure, but not necessarily relevant.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-12-22 22:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (132 votes), past polls