in reply to The Concept of References
Due to my C++ roots, I really find it more useful to think of Perl References as if they were pointers more than references, because of what my (limited) brain believes a reference should be. Apart from the (correct) pointer arithmetics stuff, the semantic of a Perl reference requires an indirection, while in C++ a reference is just some kind of alias for another variable/object and requires no indirection at all.
That's also why I'll feel less comfortable with Perl 6, which I understand will jump from "->" to "." for dereferencing in objects. But this is a mined field, 'cause I know really nothing about Perl 6!
Flavio (perl -e "print(scalar(reverse('ti.xittelop@oivalf')))")
Don't fool yourself.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: The Concept of References
by revdiablo (Prior) on Apr 14, 2005 at 16:29 UTC | |
by polettix (Vicar) on Apr 14, 2005 at 17:43 UTC | |
by revdiablo (Prior) on Apr 14, 2005 at 18:06 UTC | |
by polettix (Vicar) on Apr 14, 2005 at 18:13 UTC | |
by adrianh (Chancellor) on Apr 15, 2005 at 14:57 UTC | |
by Anonymous Monk on Apr 15, 2005 at 15:45 UTC | |
by adrianh (Chancellor) on Apr 15, 2005 at 16:04 UTC |
In Section
Meditations