newLISP stable release 10.2.0

Notices and updates
Locked
Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

newLISP stable release 10.2.0

Post by Lutz »

Stable release v.10.2.0 introduces mutable objects in FOOP and other changes and additions.

Release notes: http://www.newlisp.org/downloads/newLIS ... lease.html
Downloads: http://www.newlisp.org/index.cgi?page=Downloads

m35
Posts: 171
Joined: Wed Feb 14, 2007 12:54 pm
Location: Carifornia

Re: newLISP stable release 10.2.0

Post by m35 »

Congratulations Lutz. Looking good as always.

Few notes.
newLISP v.10.2 Release Notes wrote:Before they would be reported as part of a define function callint it.
newLISP v.10.2 Release Notes wrote:The probabilities calculated by prob-chi2 where to low for odd numbers of degrees of freedom.
newLISP v.10.2 Release Notes wrote:The Chi2 values calculated by crit-chi2 where to low for odd numbers of
newLISP v.10.2 Release Notes wrote:The editor syntax highlighting files in the util subdirectory of the source distribution have been updated:
nanorc, newlisp.jsf, newlisp.vim
Aww, no jEdit? ;)

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: newLISP stable release 10.2.0

Post by Lutz »

Thanks for the corrections (now online), and isn't jEdit covered by your generator?

http://www.newlisp.org/code/jedit-newli ... p.src.html

and linked from here:

http://www.newlisp.org/index.cgi?Code_Contributions

kks
Posts: 13
Joined: Sat Dec 26, 2009 12:05 am

Re: newLISP stable release 10.2.0

Post by kks »

Thanks Lutz and the community for all your contribution to newLISP!

After trying the new version, I've found some bugs??:

1. `setf` redefines `nil` if the place argument is a non-existing `assoc`:

Code: Select all

(setf (assoc 'a '()) '(a 1))
nil   # => (a 1)
By the way, is it possible to implicitly add an assoc if it does not exist?:

Code: Select all

(setq L '((a 1)))  (setf (assoc 'b L) '(b 2))  L   # should return ((b 2) (a 1))
(setq L '((a 1)))  (setf (lookup 'b L) 2)  L   # should return ((b 2) (a 1))
2. It seems that `pretty-print`'s `str-fp-format` option also affects `string`:

Code: Select all

(pretty-print 80 " " "%1.3f")
(string 1.2)   # => "1.200" instead of "1.2"

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: newLISP stable release 10.2.0

Post by Lutz »

Number 1. is a severe bug and I decided to retract all downloads of the new version 10.2.0, until this is fixed.

Number 2. is by design. Changing the default format in 'pretty-print' will affect all function using it, e.i. 'source' is affected too. For specific formatting use 'format'.

Locked