Function pointer loses const in for loop

Last time I checked zig copied each array element. To avoid memcpy you have to explicitly write:

    for (&actions) |*action| {

see also: How to avoid implicit memcpys?

3 Likes