comment on the nature of truth and falsehood

This commit is contained in:
David 2021-02-20 18:59:41 -05:00
parent 048557caf2
commit fee9325155
1 changed files with 6 additions and 0 deletions

View File

@ -7,7 +7,13 @@ import (
"os"
)
// FALSE is a flag for, what else, false
var FALSE = 0
// TRUE is a flag for, what else, true.
// It's -1 because historically, FORTHs would define TRUE as "all bits set to 1 in a cell",
// and interpreting that literally flips the sign flag in a signed integer.
// More generally, TRUE is defined as "not FALSE" for most purposes, and any non-zero integer will work.
var TRUE = -1
// Builtins is a handy holder for our various default words