diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 19:20:07 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 19:20:07 -0400 |
| commit | 1d2e55f53dfab5153dbfd0c03f28cd9daedb3b77 (patch) | |
| tree | aa1c21191800467abe0b3d16cb6c2a0c2e4587f9 /examples/ini/ini.tm | |
| parent | bc93dea8186168aa015b05a615bc1873173393b5 (diff) | |
Allow uninitialized variables when there's a sensible empty value
(defaults to empty/zero value)
Diffstat (limited to 'examples/ini/ini.tm')
| -rw-r--r-- | examples/ini/ini.tm | 4 |
1 files changed, 2 insertions, 2 deletions
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}/, " ") |
