Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: Hashes... Light switch isn't coming on

by muba (Priest)
on Dec 12, 2012 at 18:22 UTC ( #1008553=note: print w/ replies, xml ) Need Help??

in reply to Re: Hashes... Light switch isn't coming on
in thread Hashes... Light switch isn't coming on

Note that a pointer is not the same as a reference. A pointer points to a memory location where a value might be stored, whereas a reference —at least in Perl parlance— points to a value.

Comment on Re^2: Hashes... Light switch isn't coming on
Replies are listed 'Best First'.
Re^3: Hashes... Light switch isn't coming on
by jethro (Monsignor) on Dec 13, 2012 at 12:41 UTC

    Wikipedia says

    While "pointer" has been used to refer to references in general, it more properly applies to data structures whose interface explicitly allows the pointer to be manipulated (arithmetically via pointer arithmetic) as a memory address...

    So, while you are correct that there is a subtle difference between those words, in a language where low-level pointers don't exist it should be obvious that pointer is an alias for reference

    But thanks for the info, I wasn't really aware of the distinction

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2016-02-08 19:41 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (283 votes), past polls