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

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

by muba (Priest)
on Dec 12, 2012 at 18:22 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-20 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found