dee0xeed

Results 9 comments of dee0xeed

please confirm https://forum.nim-lang.org/profile/dee0xeed

> Zig currently uses _ in five places: but what about if/while/for "captures"? I mean ``` for (smthng) |_,_| {...} ``` and alike.

> that's already possible, its 6 then I meant ``` for (smthng) |_child,_index| {...} ``

> This change is also a good idea as you cannot put arrays or pointers into `packed struct`s I would say there is no need at all to hold pointers...

> Andre Weissflog said on zig discord that he mistook packed struct with attribute((packed)) in C me too.

``` // Equivalent of C's __attribute__((__packed__)) const S = extern struct { a: u64 align(1), b: u8 align(1), }; ``` `__attribute__((__packed__))` means there is no spaces between u64 and u8...

Also it's has been observed that linking the app with `libc` makes DynLib work properly: ``` $ /opt/zig-0.14/zig build-exe app.zig -lc -O ReleaseSmall $ ./app api = api.Api@7f7c50144390 api.add =...

Just in case, one more example. This one does not compile: ```zig const std = @import("std"); const Foo = struct { const FnPtr = *const fn (*Foo, u8) void; data:...