# Sema: Value.copy: we gotta copy the bytes · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/74ccd0c40b6871093f52769d342c1316e9ded0c0)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 74ccd0c40b6871093f52769d342c1316e9ded0c0

Requested commit: 74ccd0c40b6871093f52769d342c1316e9ded0c0

Commit: 74ccd0c40b6871093f52769d342c1316e9ded0c0

Tree: 0344132802f5581c1687e7f72083577c0648eb3a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: Value.copy: we gotta copy the bytes

For Value.Tag.bytes, the value copy implementation did not copy the
bytes array. No good. This operation must do a deep copy. If we want
some other mechanism for not copying very large byte buffers then it has
to work differently than this one.

```

## Parents

- [7378ce67dabf996f2d0927138f826dfb3d6fa05f](https://git.cafe/gitcafe/zig/commit/7378ce67dabf996f2d0927138f826dfb3d6fa05f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/74ccd0c40b6871093f52769d342c1316e9ded0c0?format=markdown)
