aboutsummaryrefslogtreecommitdiff
path: root/lib/std/net.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-06 23:21:31 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-08 15:57:24 -0500
commit2a6fbbd8fba30b8d24aa966606372f595c102d55 (patch)
tree1cdb0d029de60a63d3bba24520aa8665536ba65c /lib/std/net.zig
parent6d28b28ccc689e6bf8849b1d39e969e8da760999 (diff)
downloadzig-2a6fbbd8fba30b8d24aa966606372f595c102d55.tar.gz
zig-2a6fbbd8fba30b8d24aa966606372f595c102d55.zip
introduce `@as` builtin for type coercion
This commit also hooks up type coercion (previously called implicit casting) into the result location mechanism, and additionally hooks up variable declarations, maintaining the property that: var a: T = b; is semantically equivalent to: var a = @as(T, b); See #1757
Diffstat (limited to 'lib/std/net.zig')
0 files changed, 0 insertions, 0 deletions