Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Joker_vD
17 days ago
|
parent
|
context
|
favorite
| on:
Project Valhalla, Explained: How a Decade of Work ...
Eh, still kinda murky. How about
value Point a = new Point(10, 10); value Point b copy= a; a.x uniq= 100; System.out.println(b.x);
Now it's much more obvious that cloning/copying takes place, and mutating a field won't affect fields of any other objects.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: