Bill Allombert on Thu, 07 Sep 2023 20:12:19 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: bug in simplify_shallow
|
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: bug in simplify_shallow
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Thu, 7 Sep 2023 20:07:24 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1694110039; c=relaxed/relaxed; bh=JlHzlgIIBHd0G6duCRyhoPRJisf0gnx3mJpgTQrV2vQ=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=UsRYZmlESkWh/MNj/eeb2vhm5yUpN2tSCS4fW/IEOU+b4weFP0nOpnBrCTUxubphZkqkwmgIp6uoINV7cKLSbSQknhk92yrEgaoDc20NVIWseC4NT3xy65MgJOsd0xQ1Kx0wiGimZa2YQ2o6m1GefnR2pHyb9LmKaMwmxdnAHBjwEd+pKeUfV6DB9tk5xIcV7aOCpg1u+7sgLlRs9nwmBnr4Gm39DAjWgjWBSRIzUfSZwImt4WTGeGSiRmf5YiJsPeUGHRh8zshBlQKfZsDz29tgvDNdPr0rx9hoC8xIeTTTNTX2uDlwXF74K8NSuCRivlJr7J+9yuat8lXdziYsmiLOT7xZGW2sBz4XHhFOCiJC6WakqK2WC5GMP0s2O9mGF4/c0Z1FW9deyu/Uvgy9K7pDmXgYtACOX5Bt8PpA9eWVxtDQPQdNelCGfx2mwpiooGKRZRjm0TDOeV6aUoyw4BRSmgLGMwQhNCQNEN7KtcrrkDfumINgY7RG8SjjE2BKwPNuOmtPhocufv+cNbEkv66Xrbg2zqVAkIhp57pLOv4vJwgMhhJsgKBtR9CDkyleiERzMgmmXLdfm/ku0V2Y2h7YMBWy6JYqxcFcQu1g1+w1sytKJ2Dye3ks4ShkoNFLumCImhLO7A41eQL/kg8/ygtPq+V07oSoj5H/C1HwNuY=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1694110039; cv=none; b=I8Br5M3U21u7qD0sSLwBDjiI9QM4b6tl+f5p27qOFuLiWV5qRzVrgm15Pj1jkraXN9YpitAasotcpWdFDj2oHBkx+pxe6sQz49iLy6w599aAqBHoScxx/cilF3pJM/63wjPl/DmXqTjWb22hTdURgE9CKqnODFG8E8Gxm4FgEpYTsq31EAdD38Uz0C+dTIr0jdjoHeyEBE+sS1ELc6RMneCeAJezPUaaoLkhrsSxDR80Osw3Z/a2rPAG3bopcwP6Oc8ExTQ2XaWQLjVR881aEILAhA65qN5njd993nuTtu8aI9/NR7AFJefTR8PWpUtdMhdHXUaASQ6z7A1rleAcPCbmwnnLKDyZMzdsnljIaIgzD/rj+hzz3Uz9L6+/NQ6HYKBDk2+Q/ohEK0N/gGVPuxqdrZoxT/03dLnOrPoKSzENOzinVWU8B4yaEYmZdwh+j69BwCvnhvuepsyPWBGXK80gStjBoxFOpYncYOYGb/kRY+rN915aJbx9Iq5Uq6LvHaM/CwhsLql85+wys9tQR2gJr61l4J7nKG/W5jbUkpW6Flk32XvEm+h3SFcSRGPxEDoGYbFdTbaQxdFjggjtHyu5aAiFD96ojcSC9pyzSRxPQ4I0vnUuzw7T55J3obrEGt6Gr8J4Mtoxz1hOkWOdrwqyysTz3XVX9GV3KmCgEXk=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Thu, 07 Sep 2023 20:12:20 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1694110039; bh=JlHzlgIIBHd0G6duCRyhoPRJisf0gnx3mJpgTQrV2vQ=; h=Date:From:To:Subject:References:In-Reply-To:From; b=sqMZaA+a20ZOKY7df50cyRWAkGux583CT90xja9QkZ5vMDHh+eXI2zBSNFvsRXGJR ibNX+VhhmMOCNnTrOuwORB5Cp/hb6rhjPMl6HA0yA8Z9aV/pqrjsfQVk2qVAl/65mQ uYiVBtXHM69IGWTXyseVoIa/pKpIBxA2ZE5TYTbXlJsTMXvEMC0RiE3MXQNrzIWe+C Rg7fjE2SG5pSCwwsHHgKUSb5y5QAS0/IU3KqZOgq76u0Fg3nxGArdhd9vHULRzri/S 4pg4BSwhWzsS5pYC0flZYeoh1nh6ngLuTqMJKhhWfZFCf4wBzKoJu/d6Pb7eKFlBBV CWRsjnIXX5QtNoytwl4A39eMIcAB3AkH616H6evByC8X2QlVbiKUlATXe4IM6kWcPO ZWIez9+NifRDUgscttXcdb/ggRidCJ8cdrmzjd11y3eS90momQH+GspUro04PW5bQD DthqfpNm+FaSEPbMlGkaEFhYXt2VkqV/gAUyMUwSuQ1QdYz57EVEcrYQOt5vfwPPR4 h64oMOppfZwJDUnkE2yHOaQN6hXPrPNKp9k5poRMBfCZkhgcg/WpKgVcXgkm9pLfdk fUSqzvnleSwVEALyYCupxVUP9flqFu+PZf5JKrq7wELOxnYiuGJmNy0sDo/F+ofuaw IW1l/XA7pZyKn5SADBri+5/c=
- In-reply-to: <ZOtaInkQQYBBw9C7@math.u-bordeaux.fr>
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
- References: <1e144fa5-864d-450e-a109-1fac8300bf88@isolution.nl> <CANXmBjzx4t330CnCzz4TzMfPFVVYg+-T7iskqECzh_+_2G2ABw@mail.gmail.com> <ZOoCXdx+VmSoRmML@math.u-bordeaux.fr> <ZOtHFLdXr0FuLCzY@seventeen> <70235df6-488a-412a-b2c6-7c49d5898b99@isolution.nl> <ZOtaInkQQYBBw9C7@math.u-bordeaux.fr>
On Sun, Aug 27, 2023 at 04:13:54PM +0200, Karim Belabas wrote:
> * Ruud H.G. van Tol [2023-08-27 15:42]:
> >
> > On 2023-08-27 14:58, Bill Allombert wrote:
> > > [...]to be honest I did not remember that listput returned x and it is
> > > not explicitly documented
> >
> > ? ??listput
> > listput( list,x,{n}):
> >
> > Sets the n-th element of the list list (which must be of type t_LIST)
> > equal to x. If n is omitted, or greater than the list length, appends x. The
> > function returns the inserted element.
> >
> > So "returns the inserted element".
>
> What "the inserted element" means is ambiguous in the context of PARI's
> memory model. What the implementation does is return a direct pointer to
> the new list entry, that inserted element being a clone of the input x.
Whuch makes sense in the context of libpari, but for GP, it is better
not to return anything.
Cheers,
Bill