From 3a98cbd4d96041e78cb8748d674e9d5ea311054e Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Mon, 29 Dec 2025 00:12:15 -0500 Subject: find existing uninitialized instead of copying new --- tnslc/test.tnsl | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'tnslc/test.tnsl') diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl index 59b337a..94c36f2 100644 --- a/tnslc/test.tnsl +++ b/tnslc/test.tnsl @@ -1,20 +1,6 @@ -struct str { - ~uint8 a -} - -/; method str - /; str_get() [~uint8] - return a - ;/ -;/ - -/; module moda - /; method str - /; str_set(~uint8 a) - self.a = a - ;/ - ;/ +/; main [int] + int a = 0 + return a ;/ - -- cgit v1.2.3