Append an element to an array at comptime

based on this recent post, it looks like i need to keep my comptime var within a function/block scope… i’ll design accordingly…

but then, my question is: can i pass a reference to my “local” comptime var to some (comptime) function that would presumably manipulate the var???

answering my own question, it would appear so after a quick trip to the sandbox…

1 Like