Re: Problems running some EmuLisp tests with ersatz

2014-04-17 Thread Christophe Gragnic
On Thu, Apr 17, 2014 at 8:00 AM, Alexander Burger  wrote:
>> 1) Regarding this snippet: (for ((I . N) 11 (not (= I 4)) (inc N)) (list I 
>> N))
>> the official PicoLisp and ersatz 27 return (4 14),
>> but ersatz 29 (currently the most recent version) returns (3 13).
>
> Correct. This was fixed a while ago, on Tue Oct 02 09:16:10 2012
> (Increment 'for' counter before the condition).

Ha ha, funny that I trusted the real, but ancient, PicoLisp.
Even more funny: I now understand that the number 27 or 29 is not the version
but the (fake) pointer of the (version) function in ersatz.

> Oops, yes! I've fixed it. It is now in 3.1.6.5 JVM.
>
> Thanks again!

Thanks to you for the quick fix.


chri

-- 

http://profgra.org/lycee/ (site pro)
http://delicious.com/profgraorg (liens, favoris)
https://twitter.com/profgraorg
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Problems running some EmuLisp tests with ersatz

2014-04-16 Thread Alexander Burger
Hi Christophe,

thanks for the input! :)


> 1) Regarding this snippet: (for ((I . N) 11 (not (= I 4)) (inc N)) (list I N))
> the official PicoLisp and ersatz 27 return (4 14),
> but ersatz 29 (currently the most recent version) returns (3 13).

Correct. This was fixed a while ago, on Tue Oct 02 09:16:10 2012
(Increment 'for' counter before the condition).

But while testing this, I found the miniPicoLisp was faulty here. I
fixed and uploaded it now.



> 2) Regarding the sort function, ersatz (both versions) is OK with
> (let L (3 'Y "Y" 'X 3 "X" NIL) (sort L))
> but throws a java.lang.StackOverflow with >:
> (let L (3 'Y "Y" 'X 3 "X" NIL) (sort L >))

Oops, yes! I've fixed it. It is now in 3.1.6.5 JVM.

Thanks again!
♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Problems running some EmuLisp tests with ersatz

2014-04-16 Thread Christophe Gragnic
Hi all,
I'm currently playing with non mainstream PicoLisp versions (sorry for
that!) and found some issues.

1) Regarding this snippet: (for ((I . N) 11 (not (= I 4)) (inc N)) (list I N))
the official PicoLisp and ersatz 27 return (4 14),
but ersatz 29 (currently the most recent version) returns (3 13).

2) Regarding the sort function, ersatz (both versions) is OK with
(let L (3 'Y "Y" 'X 3 "X" NIL) (sort L))
but throws a java.lang.StackOverflow with >:
(let L (3 'Y "Y" 'X 3 "X" NIL) (sort L >))

Thanks for any explanation.
And again, thanks for PicoLisp and all the derivatives.


Christophe

-- 

http://profgra.org/lycee/ (site pro)
http://delicious.com/profgraorg (liens, favoris)
https://twitter.com/profgraorg
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe