Matthew Lugg

Results 46 issues of Matthew Lugg

TODO: PR message. @Luukdegram, any chance you'd be able to un-regress the WASM backend here? I broke `loop` and probably fixed it (although I won't claim to have tested it),...

This was a "fake" type used to handle C varargs parameters, much like generic poison. In fact, it is treated identically to generic poison in all cases other than one...

Related: #12250 It is reasonable to have one switch prong which handles both any unnamed enum alternative, and some specific tags. For instance, in the compiler codebase, when switching on...

proposal
frontend

### Zig Version 0.12.0-dev.293+f33bb0228 ### Steps to Reproduce and Observed Behavior ```zig test { const S = struct {}; const T = struct { S }; var t: T =...

bug
frontend

## Background Zig allows pointer types to have an alignment specified; a power-of-two value which the address (if defined) is guaranteed to be a multiple of. A pointer's alignment defaults...

proposal

This doesn't need to be merged if you'd prefer to stick with the current logic; I largely just wanted to see if it works properly. Nonetheless, I think this represents...

This is a proposal to eliminate the `usingnamespace` keyword from the Zig programming language. I know this is a controversial one, but please read the whole thing before leaving any...

breaking
proposal

## Background It is quite common to want to initialize arrays to a fixed constant value. Today, this is typically done with the `**` operator as follows: ```zig var pixels:...

proposal

This proposal competes with #15764. In Zig, you typically have to explicitly write `undefined` to get an undefined value. There are exceptions (e.g. `@intFromPtr(&{})` can give you `@as(usize, undefined)` without...

breaking
standard library
proposal

Consider this code: ```zig const foo = struct { extern fn foo() void; }.foo; const bar = struct { extern var bar: u32; }.bar; ``` What happens when you reference...

proposal