authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-07 19:05:52-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-08 15:57:25-05:00
logaef04aff0c60a82ab5c2336ca999a918b1905c68
treeedc0d0687b495a51be83bec09e11cd6a575d8ad0
parentaa0daea5415dd2a20e4d7c2fd047b7bcee6c9ea4
signaturelock-open Commit is signed but in an unrecognized format.

initial docs for `@as`


1 files changed, 8 insertions(+), 0 deletions(-)

doc/langref.html.in+8
......@@ -6445,6 +6445,14 @@ comptime {
64456445 </p>
64466446 {#header_close#}
64476447
6448 {#header_open|@as#}
6449 <pre>{#syntax#}@as(comptime T: type, expression) T{#endsyntax#}</pre>
6450 <p>
6451 Performs {#link|Type Coercion#}. This cast is allowed when the conversion is unambiguous and safe,
6452 and is the preferred way to convert between types, whenever possible.
6453 </p>
6454 {#header_close#}
6455
64486456 {#header_open|@asyncCall#}
64496457 <pre>{#syntax#}@asyncCall(frame_buffer: []align(@alignOf(@Frame(anyAsyncFunction))) u8, result_ptr, function_ptr, args: ...) anyframe->T{#endsyntax#}</pre>
64506458 <p>