summaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-01 12:54:56 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-01 12:54:56 +0330
commit052ff9cc03544f29e1c3c79f09b6b0f3fb989532 (patch)
tree31c21a99336c6bde18aaabb3efb2a69ace833174 /code
parenta0a1b0e555526fa0dc7628b921c5ffa3f391b2c3 (diff)
trying to fix functions as argument and more dynamically calling
functions
Diffstat (limited to 'code')
-rw-r--r--code/main.felan14
1 files changed, 9 insertions, 5 deletions
diff --git a/code/main.felan b/code/main.felan
index e91185a..5ac54dd 100644
--- a/code/main.felan
+++ b/code/main.felan
@@ -6,9 +6,13 @@ float :: f32;
double :: f64;
main :: () -> void {
- a : int = 2;
- if a == 2
- print_u64 1;
- else
- print_u64 0;
+ a :u64= 2;
+ f :: ()->void{
+ print_u64 a;
+ };
+ foo(f);
+};
+
+foo :: (fun:()->void)->void{
+ // fun();
};