We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.11.0-dev
const std = @import("std"); pub const Object = struct { desc: []const u8, tag: []const u8, location: ?*Object = null, }; pub const objs = [_]Object{ .{ .desc = "an open field", .tag = "field" }, .{ .desc = "a little cave", .tag = "cave" }, .{ .desc = "a silver coin", .tag = "silver", .location = &objs[0] }, .{ .desc = "a gold coin", .tag = "gold", .location = &objs[1] }, .{ .desc = "a burly guard", .tag = "guard", .location = &objs[0] }, .{ .desc = "yourself", .tag = "yourself", .location = &objs[0] }, }; pub fn main() !void { for (objs) |value| { std.debug.print("print: {s}", .{value}); } }
should be successful
The text was updated successfully, but these errors were encountered:
Duplicate of #131
Sorry, something went wrong.
No branches or pull requests
Zig Version
0.11.0-dev
Steps to Reproduce and Observed Behavior
Expected Behavior
should be successful
The text was updated successfully, but these errors were encountered: