The Zig Programming Language 0.2.0 Documentation.OK See also: Pointers for Arrays struct structs.zig // Declare a struct. // Zig gives no guarantees about the order of fields and whether or // not there will be padding. const Point = struct { implicitly inlines if expressions when the condition is known at compile-time, and the compiler guarantees that it will skip analysis of the branch not taken. This means that the actual function generated compile-time known. Compile-Time Variables In Zig, the programmer can label variables as comptime. This guarantees to the compiler that every load and store of the variable is performed at compile-time. Any violation0 码力 | 117 页 | 2.84 MB | 1 年前3
The Zig Programming Language 0.1.1 Documentationslice widening...OK See also: Pointers for Arrays struct // Declare a struct. // Zig gives no guarantees about the order of fields and whether or // not there will be padding. const Point = struct { implicitly inlines if expressions when the condition is known at compile- time, and the compiler guarantees that it will skip analysis of the branch not taken. This means that the actual function generated compile-time known. Compile-Time Variables In Zig, the programmer can label variables as comptime. This guarantees to the compiler that every load and store of the variable is performed at compile-time. Any violation0 码力 | 82 页 | 2.67 MB | 1 年前3
The Zig Programming Language 0.7.1 DocumentationSentinel-Terminated Slices The syntax [:x]T is a slice which has a runtime known length and also guarantees a sentinel value at the element indexed by the length. The type does not guarantee that there are Pointers Sentinel-Terminated Arrays struct structs.zig // Declare a struct. // Zig gives no guarantees about the order of fields and the size o // the struct but the fields are guaranteed to be ABI-aligned implicitly inlines if expressions when the condition is known at compile-time, and the compiler guarantees that it will skip analysis of the branch not taken. This means that the actual function generated0 码力 | 225 页 | 5.74 MB | 1 年前3
The Zig Programming Language 0.6.0 DocumentationSentinel-Terminated Slices The syntax [:x]T is a slice which has a runtime known length and also guarantees a sentinel value at the element indexed by the length. The type does not guarantee that there are Pointers Sentinel-Terminated Arrays struct structs.zig // Declare a struct. // Zig gives no guarantees about the order of fields and the size o // the struct but the fields are guaranteed to be ABI-aligned implicitly inlines if expressions when the condition is known at compile-time, and the compiler guarantees that it will skip analysis of the branch not taken. This means that the actual function generated0 码力 | 214 页 | 5.37 MB | 1 年前3
The Zig Programming Language 0.8.1 DocumentationSentinel-Terminated Slices The syntax [:x]T is a slice which has a runtime known length and also guarantees a sentinel value at the element indexed by the length. The type does not guarantee that there are Pointers Sentinel-Terminated Arrays struct structs.zig // Declare a struct. // Zig gives no guarantees about the order of fields and the size o // the struct but the fields are guaranteed to be ABI-aligned implicitly inlines if expressions when the condition is known at compile-time, and the compiler guarantees that it will skip analysis of the branch not taken. This means that the actual function generated0 码力 | 234 页 | 6.01 MB | 1 年前3
The Zig Programming Language 0.3.0 Documentationpassed. See also: Pointers for Arrays struct structs.zig // Declare a struct. // Zig gives no guarantees about the order of fields and whether or // not there will be padding. const Point = struct { implicitly inlines if expressions when the condition is known at compile-time, and the compiler guarantees that it will skip analysis of the branch not taken. This means that the actual function generated compile-time known. Compile-Time Variables In Zig, the programmer can label variables as comptime. This guarantees to the compiler that every load and store of the variable is performed at compile-time. Any violation0 码力 | 175 页 | 4.08 MB | 1 年前3
The Zig Programming Language 0.5.0 Documentationpassed. See also: Pointers for Arrays struct structs.zig // Declare a struct. // Zig gives no guarantees about the order of fields and the size of // the struct but the fields are guaranteed to be ABI-aligned implicitly inlines if expressions when the condition is known at compile- time, and the compiler guarantees that it will skip analysis of the branch not taken. This means that the actual function generated compile-time known. Compile-Time Variables In Zig, the programmer can label variables as comptime. This guarantees to the compiler that every load and store of the variable is performed at compile-time. Any violation0 码力 | 224 页 | 5.80 MB | 1 年前3
The Zig Programming Language 0.4.0 Documentationpassed. See also: Pointers for Arrays struct structs.zig // Declare a struct. // Zig gives no guarantees about the order of fields and whether or // not there will be padding. const Point = struct { implicitly inlines if expressions when the condition is known at compile- time, and the compiler guarantees that it will skip analysis of the branch not taken. This means that the actual function generated compile-time known. Compile-Time Variables In Zig, the programmer can label variables as comptime. This guarantees to the compiler that every load and store of the variable is performed at compile-time. Any violation0 码力 | 207 页 | 5.29 MB | 1 年前3
The Zig Programming Language 0.12.0 DocumentationSentinel-Terminated Slices The syntax [:x]T is a slice which has a runtime-known length and also guarantees a sentinel value at the element indexed by the length. The type does not guarantee that there are Pointers Sentinel-Terminated Arrays struct test_structs.zig // Declare a struct. // Zig gives no guarantees about the order of fields and the size of // the struct but the fields are guaranteed to be ABI-aligned implicitly inlines if expressions when the condition is known at compile-time, and the compiler guarantees that it will skip analysis of the branch not taken. This means that the actual function generated0 码力 | 241 页 | 7.37 MB | 1 年前3
The Zig Programming Language 0.9.1 DocumentationSentinel-Terminated Slices The syntax [:x]T is a slice which has a runtime known length and also guarantees a sentinel value at the element indexed by the length. The type does not guarantee that there are Pointers Sentinel-Terminated Arrays struct structs.zig 1 // Declare a struct. 2 // Zig gives no guarantees about the order of fields and the size of 3 // the struct but the fields are guaranteed to be implicitly inlines if expressions when the condition is known at compile-time, and the compiler guarantees that it will skip analysis of the branch not taken. This means that the actual function generated0 码力 | 234 页 | 7.90 MB | 1 年前3
共 47 条
- 1
- 2
- 3
- 4
- 5













