diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-31 00:57:45 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-31 00:57:45 +0330 |
commit | b89fc3da7d9f1badde2f4879924b5df5522da203 (patch) | |
tree | 1d081ff63564fd2b7c42a374ef62d432761c4124 /code/main.felan | |
parent | c91d3a8893b9c53c5c8e4c5cff72d7caf44cfee4 (diff) |
add ability to specify int type as extension
Diffstat (limited to 'code/main.felan')
-rw-r--r-- | code/main.felan | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/code/main.felan b/code/main.felan index 239a201..3420e42 100644 --- a/code/main.felan +++ b/code/main.felan @@ -21,15 +21,8 @@ __get_item_address__ :: (left:*anytype,index:i64,item:@type_of(left.*)) -> (@typ return (left + index); }; -main :: ()->void{ - arr :array(@cast(10,u64),i64) = undefined; - arr.ptr = @stack_alloc(10,i64); - i := 0; - while i < 10 { - __set_item__(arr.ptr,i,0); - i += 1; - } - print(__get_item__(arr.ptr,1)); - free(@cast(arr.ptr,*void)); +main :: () -> void { + print(1234u64); + print(1234U64); }; |