mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 18:02:02 +00:00
Interpreter - call internal procedures
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
#import "fmt.odin"
|
||||
|
||||
main :: proc() {
|
||||
foo :: proc(x: i64) -> i64 {
|
||||
return -x + 1
|
||||
}
|
||||
|
||||
x, y: i64 = 123, 321
|
||||
y = x + 2 - y
|
||||
x = foo(y)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user