From 20e598812cfe3bf2241e4c856e017acb29f13192 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Thu, 14 Nov 2024 09:19:17 -0800 Subject: more readme --- chapter17/README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'chapter17') diff --git a/chapter17/README.md b/chapter17/README.md index d65ff879..e37fa9b7 100644 --- a/chapter17/README.md +++ b/chapter17/README.md @@ -78,7 +78,6 @@ the same reference can exist. This works for `var` and normal type declarations: `var s = new S;` and `S s = new S` both make `s` an immutable reference to a `struct S`. - ```cpp struct Bar { int x; } Bar !bar = new Bar; @@ -97,9 +96,6 @@ foo.bar.x++; // Bumps to 5 print(xfoo.bar.x); // Ok to read through xfoo, prints 5 ``` - - - ## Trinary Allow `pred ? e_true : e_false`. Also allow `pred ? e_true`, where the false result @@ -117,17 +113,17 @@ Example: ```cpp int sum=0; for( int i=0; i