sodero / InstallerLG

A reimplementation of the LISP-like 'Installer' scripting language.
Other
16 stars 4 forks source link

String comparison quirk #36

Closed sodero closed 5 years ago

sodero commented 5 years ago

The CBM installer has a special case where numeric <-> string comparison doesn't trigger conversions. Instead 0 is interpreted as "", but this is only done when the number is 0 and the string is a symbolic reference.

Refer to the IBrowse script (#multiview is not defined before the 'if'):

(if (exists "sys:system/multiview") (set #multiview "sys:system/multiview") )

(if (= #multiview 0) (message #multiview-error) (run (cat #multiview " ReadMe.txt") ) )