diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-10 00:39:11 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-10 00:40:03 +0330 |
commit | a839ff6229f4ae1415dddd5995781acb4bb599e1 (patch) | |
tree | 55015a667e09c974c38b689ae8245fa2696eca55 /code/main.felan | |
parent | 91214dfb533ac693880ef06b3e990d944009d2e4 (diff) |
fix some return type issues
Diffstat (limited to 'code/main.felan')
-rw-r--r-- | code/main.felan | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/code/main.felan b/code/main.felan index 3af33e4..e365c37 100644 --- a/code/main.felan +++ b/code/main.felan @@ -1,39 +1,16 @@ @import("basic.felan"); -/* -t :: (comptime formatter : string) macro -> void { - i := 0; - in := 0; - opening := 0; - while @cast(i,u64) < formatter.length { - c := formatter[i]; - if c == '{' { - if in == 0 { - opening = i+1; - } - in += 1; - } else if c == '}' { - in -= 1; - if in == 0 { - return sub_string(formatter,opening,i); - } else if in < 0 { - in = 0; - } - } - i += 1; - } - return ""; -}; -*/ - main :: () -> void { - v := vector_new(i64); + // print_formatted("hello"); + str := string_from("Hey"); - push_back(&v,32); + print(str); + print_char('\n'); + _grow_if_needed(&str,23u64); + // append(&str,"\nHello"); - println(v.capacity); - println(v[0]); + print(str); - delete(v); + delete(str); }; |