- fixes a problem with 'nth' in 9.0.6 and a crash of the HTTP server mode on Linux
for files and change notes see here: http://newlisp.org/downloads/
Lutz
ps: the previous 9.0.6 was posted earlier today but retracted shortly after
development release version 9.0.7
-
- Posts: 2038
- Joined: Tue Nov 29, 2005 8:28 pm
- Location: latiitude 50N longitude 3W
- Contact:
I don't know anything about matrices, so this might be a stupid thing to try:
but it probably shouldn't do that...!
Code: Select all
newLISP v.9.0.7 on OSX UTF-8, execute 'newlisp -h' for more info.
> (set 'mat1 '((0 1 0) (1 0 1) (0 0 0)))
((0 1 0) (1 0 1) (0 0 0))
>
> (invert mat1)
Segmentation fault
>
Hello Lutz,
Is the new set-nth / nth-set also in 9.0.7 officialy?
because im getting a "Segmenation fault" when the <aref> is a very big list
of indexes like ->
(set-nth ( '( a c b d ) '( ...arround 2000... )) "@")
Ofcause the above is not realistic but somewhere in the line of 2000 it pops out..
Norman.
PS:
'nth' now with similar syntax options as 'net-set/set-nth'
new in 'nth':
(nth (L <idx1> <idx2> ...))
(nth (L <aref>)) ; where <aref> is a list of indices
new in 'set=nth', 'nth-set'
(set-nth (L <aref>) <newval>)
(nth-set (L <aref>) <newval>)
That mean that (set-nth ( '(a b c d) '( 0 1 2 )) "@") should return -> ("@" "@" "@" d)
because thats not working...?
Is the new set-nth / nth-set also in 9.0.7 officialy?
because im getting a "Segmenation fault" when the <aref> is a very big list
of indexes like ->
(set-nth ( '( a c b d ) '( ...arround 2000... )) "@")
Ofcause the above is not realistic but somewhere in the line of 2000 it pops out..
Norman.
PS:
'nth' now with similar syntax options as 'net-set/set-nth'
new in 'nth':
(nth (L <idx1> <idx2> ...))
(nth (L <aref>)) ; where <aref> is a list of indices
new in 'set=nth', 'nth-set'
(set-nth (L <aref>) <newval>)
(nth-set (L <aref>) <newval>)
That mean that (set-nth ( '(a b c d) '( 0 1 2 )) "@") should return -> ("@" "@" "@" d)
because thats not working...?
-- (define? (Cornflakes))
The maximum is 16 and the new nth-set/set-nth wasn't checking that maximum correctly. This is fixed in 9.0.8 and does not occur in release 9.0.(set-nth ( '( a c b d ) '( ...arround 2000... )) "@")
Note that these are not 16 different positions, but nesting levels. So your example:
should not return ("@" "@" "@" d) but:That mean that (set-nth ( '(a b c d) '( 0 1 2 )) "@") should return -> ("@" "@" "@" d)
Code: Select all
(set-nth ( '(a b c d) '( 0 1 2 )) "@")
=> ("@" b c d)
Code: Select all
(set-nth ( '((a (x y z)) b c d) '( 0 1 2 )) "@")
=> ((a (x y "@")) b c d)
Lutz