Skip to content

Instantly share code, notes, and snippets.

@manikawnth
manikawnth / hello.zig
Created July 19, 2020 17:26
Zig stack mem returned from func printing, but not mutating
const std = @import("std");
const Point = struct {
x: i32,
y: i32,
fn print(self: Point) void {
std.debug.print("x is {}, y is {}\n", .{self.x, self.y});
}

Keybase proof

I hereby claim:

  • I am manikawnth on github.
  • I am manikawnth (https://keybase.io/manikawnth) on keybase.
  • I have a public key whose fingerprint is 0279 E647 900A 2C7C 6786 824D B522 0170 51C5 1AF0

To claim this, I am signing this object: