Search code examples
lisppicolisp

picoLisp language: onOff question


This question is really moot, I think I must have hit a bug in my program or something. If you are still looking for PicoLisp and onOff behaviour, look here.




is this supposed to happen?

: (show NIL)
NIL NIL
-> NIL
: (onOff)
-> T
: (show NIL)
T T
-> T
: (=T NIL)
-> T
: 

(onOff sym ..) -> flg

Logical negates the VAL's of all argument symbols sym. Returns the
new value of the last symbol.
  • Should not the symbol names be passed explicitly?
  • Why does it return value of the last symbol?

Solution

  • This was a red herring, there was no bug. Sorry, HN wrong call. Also, it is now under the MIT (X11) license, the most liberal of open source licenses.