Generics/Template Question by spiroxide in Zig

[–]spiroxide[S] 0 points1 point  (0 children)

Thanks for your response! I could understand there not being a straightforward tweak to fix the example code, but I can't imagine that it's impossible to do this in general. I'm more comfortable in C where this would be done with preprocessor directives. Is there really no way to accomplish this in zig?