blob: 9020adbcba56355b359e8d48fead3a0e9283e716 (
plain) (
tree)
|
|
const Object = @import("Object.zig");
const Moose = struct {
foo: i32,
fn dump(self: Moose) void {
const print = @import("std").debug.print;
print("Self = {s}\n", .{@typeName(Moose)});
print("FOO = {}\n", .{self.foo});
}
};
pub fn main() void {
const o12 = Object.init(12);
const o13 = Object.init(13);
o12.dump();
o13.dump();
const m = Moose{ .foo = 42 };
m.dump();
}
|