Re: unexpected type of strjoin(), bug?

"Ruud H.G. van Tol" <[email protected]>
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <[email protected]>
On 2023-08-26 21:13, Karim Belabas wrote:
> * Ruud H.G. van Tol [2023-08-26 18:46]:
>> ? version()
>> % [2, 15, 4]
>>
>> ? type(strjoin(binary(1)))
>> % "t_INT"
> This is in principle already fixed in master. Same problem as you
> reported to this list on 2023-08-21; it manifested itself as a
> 'bug in simplify_shallow' then.

ACK, thanks.



Just for fun:

? #1 == #"1"
% 1

? #0 == #"0"
% 0

:)  (for details, see ??length and #t_INT)



Related:

? my( v= ["x"] ); strjoin(v)
   ***   bug in simplify_shallow, type unknown, please report.


For now, I'm using a workaround:

? my( v= ["x"] ); Str(strjoin(v))
% "x"

Alternative:

? my( v= ["x"] ); concat(v)
% "x"

-- Ruud
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.