xdBronch

Results 84 comments of xdBronch

> how can i add a file that i can import with @embedFile? if im not wrong you would do ```zig exe.root_module.addAnonymousImport("name", .{ .target = target, .optimize = optimize, .root_source_file...

> There's one exception to this and that's unbounded for-ranges: > This is because those must not be captured into _ - it's a compile error. this is only mostly...

`os.getenv` isnt cross platform it looks like you should add it to here https://github.com/ziglang/zig/blob/8802ec583b376101ee7fcb0a64cf937b90dc6130/src/introspect.zig#L147-L155 then you can do `EnvVar.ZIG_SYSROOT.isSet()` or `get()` in main. for the build runner it looks like...

yeah my bad, realized its not terribly useful to just say dont use something

also meshes well with WIP changes to make `@fieldParentPtr` do the same

see https://github.com/ziglang/zig/pull/19181#issuecomment-1998000935

im getting some (unrelated) weird build errors from this but i believe the problem is this line https://github.com/Pyrolistical/dynlib-struct-pass-by-value-repo/blob/ace0ec3aff2613a43b84b0b12e26c21cec2bbc07/src/main.zig#L18 you need to add `callconv(.C)`. this should probably be checked in the...

that might work, i wouldve asserted that its specifically the C callconv idk what happens with any of the others

that compile error isnt possible unless the language was changed to always require passing mutable pointers to varargs which would be silly. im guessing that here the compiler inlines the...

this is because the deprecated `std.mem.tokenize` is an alias for `tokenizeAny` ![image](https://github.com/ziglang/zig/assets/51252236/d54c639b-56dc-4d1e-b24d-a4bccac87352)