From 2397633618d4cc06a8e72164d2db77b317f983b4 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 30 Jan 2026 12:14:59 +0000 Subject: Update `demo.odin` --- examples/demo/demo.odin | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3