[Remind-Fans] SPECIAL, trigdate(), and expression pasting

Ian! D. Allen idallen at idallen.ca
Sun Jun 12 03:13:25 EDT 2016


This one-line reminder file "r" gives an error message because trigdate()
is not set and the subtraction has mixed types:

REM SPECIAL [ "COLOR 66 66 66 " + iif( (trigdate()-today()) == 0, "FOO", "BAR" ) ]

$ remind -v -dx r
trigdate() => 0
today() => 2016-06-12
0 - 2016-06-12 => Type mismatch
r(1): REM SPECIAL [ "COLOR 66 66 66 " + iif( (trigdate()-today()) == 0, "FOO", "BAR" ) ]
`-': Type mismatch
       Type mismatch
No reminders.

This equivalent one-line reminder file "r" works fine:

REM SPECIAL COLOR 66 66 66 [ iif( (trigdate()-today()) == 0, "FOO", "BAR" ) ]

$ remind -v -dx r
trigdate() => 2016-06-12
today() => 2016-06-12
2016-06-12 - 2016-06-12 => 0
0 == 0 => 1
iif(1, "FOO", "BAR") => "FOO"
FOO

I would like both files to behave nicely and not issue error messages.

In the first example above, I think Remind needs to always set trigdate()
when evaluating SPECIAL lines, at least in cases where an expression is
being used.

-- 
| Ian! D. Allen, MMath  -  idallen at idallen.ca  -  Ottawa, Ontario, Canada
| Home: http://idallen.com/  Contact Improv Dance: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/


More information about the Remind-fans mailing list