WIP: comptime experiments

This commit is contained in:
Laurens Miers 2024-09-25 12:20:34 +02:00
parent 7417f01d5d
commit b68855fc2d
10 changed files with 57 additions and 15 deletions

View file

@ -39,7 +39,7 @@ const llamas = makeLlamas(llama_count);
// And here's the function. Note that the return value type
// depends on one of the input arguments!
fn makeLlamas(count: usize) [count]u8 {
fn makeLlamas(comptime count: usize) [count]u8 {
var temp: [count]u8 = undefined;
var i = 0;