RSSAmplifier

openmymind.net · Mar 7, 2025

Zig's dot star syntax (value.*)

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Maybe I'm the only one, but it always takes my little brain a split second to understand what's happening whenever I see, or have to write, something like value.* = .{...} . If we take a step back, a variable is just a convenient name for an address on the stack. When this function executes: fn isOver9000(power: i64) bool { return power > 9000; } Say, with a power of 593, we could visualize its…

Read on openmymind.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.