diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-04 02:16:41 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-04 02:16:41 +0330 |
commit | bde04c7d905814330d60ed354e990177c530df6d (patch) | |
tree | 959ecf2592f9461dcb245dd2e76a9aa5160db145 /code/main.felan | |
parent | a614d8973bf0eed2d12e49398fb34e234a77ccb3 (diff) |
fixing more bugs in access
Diffstat (limited to 'code/main.felan')
-rw-r--r-- | code/main.felan | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/code/main.felan b/code/main.felan index 84e2949..ebb9cd5 100644 --- a/code/main.felan +++ b/code/main.felan @@ -24,30 +24,7 @@ t :: (comptime formatter : string) -> void { } }; -sub_string :: (str:string, begin:i64, end:i64) -> string { - result := ""; - result.ptr = str.ptr + begin; - result.length = @cast(end-begin,u64); - return result; -}; - main :: () -> void { - a := '2'; - // @insert("a = '3';a = '5';"); - // @putc(a); - println(a); - b := &a; - println(b.*); - println(a); - b.* = '5'; - println(b.*); - arr :[10]u8= undefined; - arr[0] = '6'; - @putc(arr[0]); - // t("hello {world}"); - // str := "abcdef"; - // print(@cast(9-3,u8)); - // print(sub_string(str,1,3)); - // @insert("print(123);"); + t("hello {world}"); }; |