diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-12-30 22:31:56 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-12-30 21:41:02 -0800 |
| commit | 3f7d9b5fc19e4081236b3b63aebbc80e1b17f5b5 (patch) | |
| tree | a577bd97edf5d5da357d576c777861d443210aec /lib/std/array_list.zig | |
| parent | 133da8692e80532797dd91b32539cf2175280a95 (diff) | |
| download | zig-3f7d9b5fc19e4081236b3b63aebbc80e1b17f5b5.tar.gz zig-3f7d9b5fc19e4081236b3b63aebbc80e1b17f5b5.zip | |
stage2: rework Value Payload layout
This is the same as the previous commit but for Value instead of Type.
Add `Value.castTag` and note that it is preferable to call than
`Value.cast`. This matches other abstractions in the codebase.
Added a convenience function `Value.Tag.create` which really cleans up
the callsites of creating `Value` objects.
`Value` tags can now share payload types. This is in preparation for
another improvement that I want to do.
Diffstat (limited to 'lib/std/array_list.zig')
0 files changed, 0 insertions, 0 deletions
