diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-30 12:14:59 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-30 12:14:59 +0000 |
| commit | 2397633618d4cc06a8e72164d2db77b317f983b4 (patch) | |
| tree | f71d19722d11b7bfbe2acf4723b6e78194213228 | |
| parent | 7125782bd2743084d804269fa57dd65f6e862033 (diff) | |
Update `demo.odin`
| -rw-r--r-- | examples/demo/demo.odin | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index 1ea06d096..294668f14 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -1,5 +1,5 @@ #+vet !using-stmt !using-param -#+feature dynamic-literals +#+feature dynamic-literals using-stmt package main import "core:fmt" @@ -751,6 +751,11 @@ union_type :: proc() { } using_statement :: proc() { + // IMPORTANT NOTE: `using` as a statement is an opt-in feature which can be abled + // by adding `#+feature using-stmt` to be beginning of the file + // + // `using` as a struct field modifier remains available always + fmt.println("\n# using statement") // using can used to bring entities declared in a scope/namespace // into the current scope. This can be applied to import names, struct |