Why there are no 'physical' object variables (only references)?
Tydr Schnubbis
fake at address.dude
Tue Sep 12 14:33:39 PDT 2006
Steve Horne wrote:
> The trouble is, this is all subjective. The Python one-size-fits-all
> everythings-an-object-with-a-reference approach will probably always
> bug me, but a lot depends on what you're used to.
>
Not sure I follow. Python uses value semantics for numbers and strings.
The reason you get them for strings is that strings are immutable, so
Python always creates a copy when a string is about to be changed.
So it works like in D, except for the strings.
More information about the Digitalmars-d
mailing list