summaryrefslogtreecommitdiff
path: root/Clone a reference in a function to modify it.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-08-08 22:44:15 +0200
committerJasper Ras <jras@hostnet.nl>2025-08-08 22:44:15 +0200
commit22675cd8dc75d8b8d4b0f818f5b093efbc364802 (patch)
tree90156d37dccf13f012d535e7d92273259e3d5c17 /Clone a reference in a function to modify it.md
parent295b343aecf330e830d79f06e0efc511e7d76da1 (diff)
vault backup: 2025-08-08 22:44:15HEADmain
Diffstat (limited to 'Clone a reference in a function to modify it.md')
-rw-r--r--Clone a reference in a function to modify it.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/Clone a reference in a function to modify it.md b/Clone a reference in a function to modify it.md
new file mode 100644
index 0000000..73590f0
--- /dev/null
+++ b/Clone a reference in a function to modify it.md
@@ -0,0 +1,3 @@
+[[Cloning a box does a deep copy of the heap data]]
+
+To be able to safely modify the heap value of a reference passed to a function we can clone it's heap value. This can be expensive. \ No newline at end of file