Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

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: