WIP: comptime experiments
This commit is contained in:
parent
7417f01d5d
commit
b68855fc2d
10 changed files with 57 additions and 15 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue