Use built-in nonconst() function instead of contortions to get a nonconst value.

This commit is contained in:
Dianne Skoll
2025-10-13 11:05:58 -04:00
parent a22b0b8daf
commit f05ef363fc
2 changed files with 3 additions and 3 deletions

View File

@@ -920,7 +920,7 @@ EOF
$REMIND --json - 2025-10-01 <<'EOF' >> $OUT 2>&1
# Nonconst-expr in trigger
set a (today()+1)-today()
set a nonconst(1)
REM 2025-10-01 MSG Nonconst NOT set [today()]
REM 2025 Oct [a] MSG Nonconst IS set [today()]
REM 2025 Oct [a] MSG Nonconst IS set
@@ -929,7 +929,7 @@ EOF
$REMIND -j - 2025-12-31 <<'EOF' >> $OUT 2>&1
# Nonconst-expr in trigger
set $ParseUntriggered 1
set a (today()+1)-today()
set a nonconst(1)
REM 2025-10-01 MSG Nonconst NOT set [today()]
REM 2025 Oct [a] MSG Nonconst IS set [today()]
REM 2025 Oct [a] MSG Nonconst IS set

View File

@@ -39933,7 +39933,7 @@ No reminders.
]
# Nonconst-expr in trigger
set $ParseUntriggered 1
set a (today()+1)-today()
set a nonconst(1)
#!P: Expired: REM 2025-10-01 MSG Nonconst NOT set [today()]
#!P: Next line may have expired, but contains non-constant expression
#!P: or a relative SCANFROM clause