anything like C++ references?
Adam Ruth
owski at hotmail.com
Wed Jul 16 10:12:04 EDT 2003
In <1058328099.572993 at yasure> Donn Cave wrote:
> Quoth Adam Ruth <owski at hotmail.com>:
> ....
>| In Python, there is no situation where "you really can't avoid
>| pointers".
>
> That's trivially true, no such situation can exist because that
> Python can't be coded. I'll repeat an example that I proposed
> a couple days ago, though: user implemented sequences could be
> implemented with a single simple indexing function, returning
> a pointer/target/whatever; Python could assign directly to that,
> making "seq[i] = x" the same kind of operation as and automatically
> symmetrical with "x = seq[i]".
>
> It can't be done without pointers, as far as I can see. You may not
> care if it can be done, but I think you'd agree that "there is no
> situation that I care about where you really can't avoid pointers"
> would be kind of a lame version of your assertion.
>
> Donn Cave, donn at drizzle.com
>
I did a quick google search and couldn't find the thread you're
referring to. Could you summarize it for me? It sounds interesting. I
do so love the taste of my foot in my mouth.
Adam Ruth
More information about the Python-list
mailing list