| Bill Allombert on Tue, 12 Jan 2016 16:45:45 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: Support trailing semicolon in gp_read_str_multiline() |
On Tue, Jan 12, 2016 at 03:46:51PM +0100, Jeroen Demeyer wrote:
> Dear pari-dev,
>
> Attached patch changes gp_read_str_multiline() to look at trailing a
> semicolon. If there is, the output is silenced (i.e. gnil is
> returned).
>
> In other words, gp_read_str_multiline("a = 1") will return a t_INT 1
> while gp_read_str_multiline("a = 1;") will return gnil.
The issue is that gp does not display '123' put still put 123 in the result
history:
? a=123;
? %
%2 = 123
But with your patch, gp_read_str_multiline() do not allow to do it.
Cheers,
Bill.