The Zig Programming Language 0.12.0 Documentation'foobar' here is a number: 1234 Let's crack open the implementation of this and see how it works: poc_print_fn.zig const Writer = struct { /// Calls print and then flushes the buffer. pub fn print(self: is a function that takes a parameter of any type, and does different things depending on the type: poc_printValue_fn.zig const Writer = struct { pub fn printValue(self: *Writer, value: anytype) !void0 码力 | 241 页 | 7.37 MB | 1 年前3
The Zig Programming Language 0.9.1 Documentation'foobar' here is a number: 1234 Let's crack open the implementation of this and see how it works: poc_print_fn.zig 1 const Writer = struct { 2 /// Calls print and then flushes the buffer. 3 is a function that takes a parameter of any type, and does different things depending on the type: poc_printValue_fn.zig 1 const Writer = struct { 2 pub fn printValue(self: *Writer, value: anytype)0 码力 | 234 页 | 7.90 MB | 1 年前3
The Zig Programming Language 0.11.0 Documentation'foobar' here is a number: 1234 Let's crack open the implementation of this and see how it works: poc_print_fn.zig 1 const Writer = struct { 2 /// Calls print and then flushes the buffer. 3 is a function that takes a parameter of any type, and does different things depending on the type: poc_printValue_fn.zig 1 const Writer = struct { 2 pub fn printValue(self: *Writer, value: anytype)0 码力 | 238 页 | 7.80 MB | 1 年前3
The Zig Programming Language 0.10.1 Documentation'foobar' here is a number: 1234 Let's crack open the implementation of this and see how it works: poc_print_fn.zig 1 const Writer = struct { 2 /// Calls print and then flushes the buffer. 3 is a function that takes a parameter of any type, and does different things depending on the type: poc_printValue_fn.zig 1 const Writer = struct { 2 pub fn printValue(self: *Writer, value: anytype)0 码力 | 239 页 | 8.03 MB | 1 年前3
共 4 条
- 1













