enum #export

This commit is contained in:
gingerBill
2018-01-21 14:30:48 +00:00
parent 8b288a2072
commit 88ba6d8015
6 changed files with 58 additions and 5 deletions
+11
View File
@@ -664,6 +664,16 @@ named_proc_parameters :: proc() {
fmt.println("foo2 =", foo2()); // 567 321
}
enum_export :: proc() {
Foo :: enum #export {A, B, C};
f0 := A;
f1 := B;
f2 := C;
fmt.println(f0, f1, f2);
}
main :: proc() {
when true {
general_stuff();
@@ -674,6 +684,7 @@ main :: proc() {
array_programming();
using_in();
named_proc_parameters();
enum_export();
}
}