zig-help
is there some way to ensure an error is thrown if a value isn't locked and is accessed?
map3 how to infer array size and type at compile time?
Answered
Alternate EntryPoint, os_tag issues
Build System
0.14.x
Answered
Cast an array/slice from `[]const u32` to `[]const enum(u32) { _ }`
Answered
Is there such a thing as []const *const i32?
0.14.x
Standard Library
New User
0.13.x
Why `Self = @This()` and not just @This?
Answered
Trying to migrate from @cImport to addTranslateC and got ZIG errors.
Answered
Im trying to explore using zig with embedded v8
0.13.x
How to correctly evaluate this inline assembly expression at compile time?
0.14.x
Answered
packed enum to u8 bytes?
Splitting methods into separate modules
if expressions with multiple "else if"
Answered
build.zig things
Answered
slice an array
Answered
How do you link zglfw on linux?
New User
Why is nothing marked pub in zglfw?
spread operator for structs
layout sanity check
What's the idiomatic way to fail a build?
Build System
0.14.x
Standard Library
Answered
Why this fails: ?usize orelse ?usize orelse @compilerError
Finding `.container_field_init` default value?
0.13.x
create fields with @Type
Good Code Structure to modify value of "|i|" in for loop
New User
Linker issue with C Project (libmprompt)
Build System
New User
Concise way to specify a negative usize value
Answered
crash regarding function returning a comptime-int sized array of tuples
Compiler
Answered
0.13.x
error setting std.heap.page_min_size on freestanding+riscv64
Answered
Convert slice to array at comptime
Answered
What's the difference between struct and file like struct
Building -ofmt=c output with GCC
Answered
Invalid record (Producer: 'zig 0.14.0' Reader: 'LLVM 18.1.7')
Why dont i need to free a owned slice?
Answered
wasip2
Generate Enum Fields at Comptime
Answered
0.13.x
How to modify string literal at compile time?
Answered
0.13.x
PTRACE_GETREGS not storing registers in supplied buffer
0.14.x
Standard Library
Compiler
Use Vector(3, f32) or Vector(4, f32). Does it matter?
0.14.x
Standard Library
New User
Answered
File to []const u8 at compilation
Inconsistent switch and while behavior
0.14.x
Compiler
Answered
Call functions from C source file during the build process
Build System
Answered
"coercion" without panicking
What is going on with the formatting?
New User
Answered
extremely confusing error output
Build System
0.14.x
Trying to link static C libraries, no success
Build System
Compiler
New User
Incorrect "struct depends on itself" error
Bizarre error when defining a throwaway in-memory Reader
Answered
how to override std.start?
Answered
any doc about the memory layout of the union type?
bizarre behavior from zig-lsp in vscode
0.14.x
how to properly identify a string
Answered