From eb1e1fc1e70bdde6a453f82dea2348c42ccb198d Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 12 Jan 2025 18:35:39 +0100 Subject: Evaluator: Store variables with value instead of reference --- examples/3.src | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/3.src b/examples/3.src index 042edea..4b56092 100644 --- a/examples/3.src +++ b/examples/3.src @@ -1,3 +1,5 @@ -let sixteen = 10 + 2 + 4; +let seventeen = 10 + 2 + 4; -print(sixteen); +seventeen = seventeen + 1; + +print(seventeen); -- cgit 1.4.1