Does cast to sumtype need deep copy in cgen? #25090
Unanswered
kbkpbot
asked this question in
Questions and Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems current implement in
cgen
, to_sumtype only do amemdup
, does this need to be a deep copy?for example, there are some fields in
v__ast__Ident
are pointers, some embedded struct fields are pointers too.or just make a pointer to
x
?Beta Was this translation helpful? Give feedback.
All reactions