(no title)
TinkersW | 3 months ago
I don't really think much of Zig myself for other reasons, but comptime seems like a good design.
TinkersW | 3 months ago
I don't really think much of Zig myself for other reasons, but comptime seems like a good design.
wyldfire|3 months ago
Is that the case? That's not what I think of when I think of C-style casts.
The representation in memory of `val` should not match that of `val_i`, right? The value is encoded differently and the quantity is not preserved through this transformation. I don't think that means that the data weren't changed.Maybe you're thinking of aliasing/type-punning? Casts in C do perform conversions as they do in C++.
spacechild1|3 months ago
jjtheblunt|3 months ago