[RPL/2] did i found a bug ?

BERTRAND Joel joel.bertrand at systella.fr
Lun 15 Nov 16:13:56 CET 2010


DEMAINE Benoit-Pierre a écrit :
> On 10/11/10 20:33, BERTRAND Joel wrote:
>>      Have you tried my patch ? I'm waiting for you to push this patch in
>> main tree...
>
> Before update:
>
> dhp at uranus ~ $ rpl
> +++RPL/2 (R) version 4.0.19 (Sunday 10/17/10, 18:25:38 CEST)
> +++Copyright (C) 1989 to 2009, 2010 BERTRAND Joel
>
> +++This is a free software with absolutely no warranty.
> +++For details, type 'warranty'.
>
> RPL/2>  100 1024* 50 *
>
> 2: 100
> RPL/2>  100 1024 * 50 /
> +++System : Memory allocation error [15088]
> dhp at uranus ~ $
>
> After:
>
> dhp at uranus ~ $ rpl
> +++RPL/2 (R) version 4.0.19 (Friday 11/12/10, 01:25:15 CET)
> +++Copyright (C) 1989 to 2009, 2010 BERTRAND Joel
>
> +++This is a free software with absolutely no warranty.
> +++For details, type 'warranty'.
>
> RPL/2>  100 1024* 50 *
> +++Error : Syntax error [32019]
> RPL/2>  100 1024 * 50 /
>
> 1: 2048
> RPL/2>  100 1024 * 50 *
>
> 2: 2048
> 1: 5120000
> RPL/2>  exit
> dhp at uranus ~ $
>
> Works for me.

	And it's not a workaround. I'm not pushed this patch in main tree 
because there is a side effect:

RPL/2> { 123+ }

is treated as syntax error but RPL/2 enters in a deadlock... Same 
constatation with <[ 123+ ]>.

	JKB


Plus d'informations sur la liste de diffusion RPL2