Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: The Concept of References

by adrianh (Chancellor)
on Apr 15, 2005 at 14:57 UTC ( #448199=note: print w/ replies, xml ) Need Help??


in reply to Re^3: The Concept of References
in thread The Concept of References

One could argue that a pointer in C, e.g. to a struct tm, knows what it points to

In C the programmer tells the pointer what it points to. In Perl the reference knows what it points to. It's an important if subtle difference.


Comment on Re^4: The Concept of References
Re^5: The Concept of References
by Anonymous Monk on Apr 15, 2005 at 15:45 UTC
    Eh, not quite. The reference doesn't know. The difference is that in Perl, the thing the references points to, knows what it is. In Perl, SVs are typed.
      The difference is that in Perl, the thing the references points to, knows what it is. In Perl, SVs are typed.

      Point. I should have been more precise.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2014-08-22 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (159 votes), past polls