Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: The Concept of References

by adrianh (Chancellor)
on Apr 15, 2005 at 14:57 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://448199]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-25 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found