From 14c9e2b60f686407dbe7218658809d768351d345 Mon Sep 17 00:00:00 2001
From: A404M <ahmadmahmoudiprogrammer@gmail.com>
Date: Sat, 31 May 2025 04:42:21 +0330
Subject: add array access overload

---
 code/main.felan | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'code')

diff --git a/code/main.felan b/code/main.felan
index 3420e42..3e98896 100644
--- a/code/main.felan
+++ b/code/main.felan
@@ -1,5 +1,6 @@
-@import("basic.felan");
-@import("lib/memory.felan");
+// @import("basic.felan");
+// @import("lib/memory.felan");
+@import("lib/operator.felan");
 
 print :: (value:**anytype)->void{
   if comptime @type_of(value.*) == u8 {
@@ -22,7 +23,8 @@ __get_item_address__ :: (left:*anytype,index:i64,item:@type_of(left.*)) -> (@typ
 };
 
 main :: () -> void {
-  print(1234u64);
-  print(1234U64);
+  a := @stack_alloc(10,u8);
+  a[0] = '1';
+  @putc(a[0]);
 };
 
-- 
cgit v1.2.3