Page 1 of 1
bug?
Posted: Thu Oct 06, 2016 6:15 pm
by kesha
Code: Select all
newLISP v.10.7.1 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h
> (= 'A 'A)
true
> (= 'A 'B)
nil <--------------- !!!
> (define (Test A B C))
(lambda (A B C))
> (++ (find 'D (first Test)))
1
> (= 'A 'A)
true
> (= 'A 'B)
1 <---------------- ???
Re: bug?
Posted: Thu Oct 06, 2016 9:51 pm
by Lutz
Thanks for finding this.
nil is only allowed in
++,
--,
inc and
dec when contents of a variable, else it is seen as a wrong parameter.
fixed here:
http://www.newlisp.org/downloads/develo ... nprogress/
Re: bug?
Posted: Thu Oct 06, 2016 10:00 pm
by ralph.ronnquist
I'd say Bug!
Apparently ++ manages to increment nil so now the value of nil is 1.
It also appears to require a compound set of circumstances for allowing ++ increment nil, so: Well done, for finding this problem.
EDIT: Lutz was already well ahead (of course?).
Re: bug?
Posted: Fri Oct 07, 2016 8:19 am
by kesha
Thanks Lutz!