| ... | @@ -6445,6 +6445,14 @@ comptime { | ... | @@ -6445,6 +6445,14 @@ comptime { |
| 6445 | </p> | 6445 | </p> |
| 6446 | {#header_close#} | 6446 | {#header_close#} |
| 6447 | | 6447 | |
| | 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 | |
| 6448 | {#header_open|@asyncCall#} | 6456 | {#header_open|@asyncCall#} |
| 6449 | <pre>{#syntax#}@asyncCall(frame_buffer: []align(@alignOf(@Frame(anyAsyncFunction))) u8, result_ptr, function_ptr, args: ...) anyframe->T{#endsyntax#}</pre> | 6457 | <pre>{#syntax#}@asyncCall(frame_buffer: []align(@alignOf(@Frame(anyAsyncFunction))) u8, result_ptr, function_ptr, args: ...) anyframe->T{#endsyntax#}</pre> |
| 6450 | <p> | 6458 | <p> |