git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]# I'm wrong or Will we fix the ducks limp?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Antoon Pardon <antoon.pardon at rece.vub.ac.be> wrote: > A.x = 1; > A.y = 2; > > B = A; > > B.x = 3; > B.y = 4; > > > In C the variable A will still be x:1, y:2. > In Python the variable A will be x:3, y:4. But it would, if you had written instead: A->x = 1; A->y = 2; B = A; B->x = 3; B->y = 4; which backs indeed the C pointer analogy... -- Julien Salort Entia non sunt multiplicanda praeter necessitatem http://www.juliensalort.org

- Prev by Date:
**I'm wrong or Will we fix the ducks limp?** - Next by Date:
**I'm wrong or Will we fix the ducks limp?** - Previous by thread:
**I'm wrong or Will we fix the ducks limp?** - Next by thread:
**I'm wrong or Will we fix the ducks limp?** - Index(es):