typo in the newLISP manual? (pop)

Started by ghyll, September 09, 2014, 11:58:40 AM

Previous topic - Next topic

ghyll

I think I found a typo in the pop function section of the newLISP manual.


(set 'pList '((f g) a b c "hello" d e 10))
(pop pList)  → (f g)
(pop pList)  → a
pList        → (b c "hello" d e 10)
(pop pList 3)    → d
(pop pList 100)  → 10


As-is, (pop pList 100) produces an invalid index error. The line should probably read
(pop pList 4)    → 10
or
(pop pList -1)    → 10

Is there a better place to post this? Thank you!

Lutz

#1
Thanks for the correction, online here: http://www.newlisp.org/downloads/newlisp_manual.html">http://www.newlisp.org/downloads/newlisp_manual.html .



Normally corrections are posted in the first topics group, but I welcome them in any place ;-)