Ruud H.G. van Tol on Sun, 27 Aug 2023 15:04:54 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: unexpected type of strjoin(), bug?
|
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: unexpected type of strjoin(), bug?
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>
- Date: Sun, 27 Aug 2023 15:00:10 +0200
- Delivery-date: Sun, 27 Aug 2023 15:04:54 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=isolution.nl; s=soverin; t=1693141211; bh=ya7t9Ru0GYKJvOtVXipnOwBmvXFDVHwo9iNCN3kPXmA=; h=Date:From:Subject:To:References:In-Reply-To:From; b=Pu8Hsz3lB/HXvP+k6mIKam1ylGReR6+g6qfHAi0kkbKfocTNqdFkFjyfBCJviN/xH mYAaiLrAx7I4x5NheJXj70P76LT2aFwzsYUj8eh9CsGF9l9Z+O4tzWAo/UdatYOfYe hweEUBzhCyYiXtf30/wq7DQXPEiisxSKS/u/hhVRLTmpYhNvMTAPzwCaBSLDSplt3S TTijXjxMhe9i3U4M02G4u5mUm4jw4JXP7Gd+VM3A1bNghG9rSQ2150lSeL2V8mt6v9 NLy7JObuIz5U0Whb/GqvepU5u8XNG1Um/xpQuF26NmQi3FzYMyq0ShWpjxFy+5mvSd Ki2tHiFajOOmQ==
- In-reply-to: <ZOpO5ogRdw6aFc5b@math.u-bordeaux.fr>
- References: <1e049f4b-a923-4e21-822b-20db89f8b1be@isolution.nl> <ZOpO5ogRdw6aFc5b@math.u-bordeaux.fr>
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