summaryrefslogtreecommitdiff
path: root/code/main.felan
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-05 15:09:23 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-05 15:09:23 +0330
commitb5772e1c6961dd4b99b91b060b57584d4868aa2b (patch)
tree0b2d3c4f9b4d58981439e027423129ff0f427572 /code/main.felan
parent5d43a23a42725d9e88be76ce04260dbd4b57d370 (diff)
working on access operator
Diffstat (limited to 'code/main.felan')
-rw-r--r--code/main.felan5
1 files changed, 5 insertions, 0 deletions
diff --git a/code/main.felan b/code/main.felan
index 7428511..f4b7608 100644
--- a/code/main.felan
+++ b/code/main.felan
@@ -11,6 +11,11 @@ st :: struct {
};
main :: () -> void {
+ b :u64= 2;
+ c := &b;
+ c.* = 4;
+ print_u64 b;
a : st = undefined;
+ a.a = 5;
};