mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-14 09:52:23 -07:00
20 lines
240 B
Odin
20 lines
240 B
Odin
#import "fmt.odin";
|
|
|
|
main :: proc() {
|
|
foo :: proc() {
|
|
fmt.printf("Zero args\n");
|
|
}
|
|
foo :: proc(i: int) {
|
|
fmt.printf("One arg, i=%d\n", i);
|
|
}
|
|
THING :: 14451;
|
|
|
|
foo();
|
|
foo(THING);
|
|
fmt.println(THING);
|
|
|
|
x: proc();
|
|
x = foo;
|
|
x();
|
|
}
|