From 4e301a3e9044d5cd7b940812617078f16f627bc2 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Fri, 6 Dec 2024 19:51:01 +0000 Subject: [PATCH] doc: add properties to sample file --- doc/sample/Expressions.im | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/sample/Expressions.im b/doc/sample/Expressions.im index 3260f08..92b2cd3 100644 --- a/doc/sample/Expressions.im +++ b/doc/sample/Expressions.im @@ -47,7 +47,7 @@ while x > 2 do end for i in 0 to:100 step:2 do - cout put:"Count is {i}" + cout put:'Count is {i}' end cout put:"message" while x > 2. @@ -108,4 +108,15 @@ class Person #days => self::age / 365, _ => 0 end! + + $ exampleProperty | get => self::val, set => self::val = value. + + $ exampleProperty2 | + get => self::val. + + $ exampleProperty3 | get => 42. + + $ exampleProperty4 (get, set) + + $ exampleProperty5 (get) end \ No newline at end of file