What is the Best Way to Copy an ObjDict to Another ObjDict? #641
Answered
by
Jason2605
briandowns
asked this question in
General
-
What is the Best Way to Copy an ObjDict to Another ObjDict? |
Beta Was this translation helpful? Give feedback.
Answered by
Jason2605
Aug 22, 2023
Replies: 1 comment 4 replies
-
There are the copy and deepCopy methods, but deepCopy will currently break if there are cyclic references so just be careful with that https://dictu-lang.com/docs/collections/dictionaries/#copying-dictionaries |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah then it’ll just be using the copy function in copy.c
https://github.com/dictu-lang/Dictu/blob/develop/src/vm/datatypes/copy.c#L5