Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mgaunard
on July 13, 2023
|
parent
|
context
|
favorite
| on:
Vale's first prototype for immutable region borrow...
It isn't. If you copy a value and change the copy, the original is unaffected.
spacechild1
on July 13, 2023
[–]
C++ classes in general are value types. The fact that instances might share a common resource does not change that. See also
https://learn.microsoft.com/en-us/cpp/cpp/value-types-modern...
.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: