-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explanation for listing 15-7 has strange phrasing #2274
Comments
I noticed this as well. What do you think would be a better explanation? I thought about modifying the listing example to something like this, but it does stray slightly away from the previous listing (15-6)
|
maybe something like this?
|
I think that reads a lot better. 👍 Shall it mention |
you can feel free to create the PR if you want. As far as copying I feel that is implied since you can't get a new value that is the same as the one x had without copying the value of x, but it maybe better to be verbose about it, i'll leave that up to you. |
oop wrong button |
list 15-7 has the following code snippet:
With the following explanation
This is confusing because
y
is not pointing to the value ofx
, it created a copy ofx
's value and stored that in the heap. The explanation suggests (to me at least) that*y
andx
refer to the same location in memoryThe text was updated successfully, but these errors were encountered: