From 1d2e55f53dfab5153dbfd0c03f28cd9daedb3b77 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 19:20:07 -0400 Subject: Allow uninitialized variables when there's a sensible empty value (defaults to empty/zero value) --- examples/ini/ini.tm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/ini') diff --git a/examples/ini/ini.tm b/examples/ini/ini.tm index 7d53d7e5..c24cb4b9 100644 --- a/examples/ini/ini.tm +++ b/examples/ini/ini.tm @@ -11,8 +11,8 @@ _HELP := " func parse_ini(path:Path -> {Text={Text=Text}}) text := path.read() or exit("Could not read INI file: $\[31;1]$(path)$\[]") - sections : @{Text=@{Text=Text}} = @{} - current_section : @{Text=Text} = @{} + sections : @{Text=@{Text=Text}} + current_section : @{Text=Text} # Line wraps: text = text.replace_pattern($Pat/\{1 nl}{0+space}/, " ") -- cgit v1.2.3