Bill Allombert on Mon, 25 Dec 2023 19:34:31 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: reference parameters
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Mon, 25 Dec 2023 19:34:10 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1703529251; c=relaxed/relaxed; bh=KRHhnjF7ebrrDK0obWPfGT+TlQh9jXnYTATaaV6/v84=; 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=AwL+jF3eRy73HGzYuhxz5QRC3kx5VQROhurwekXphrf4b8K7RWOOUWwuKFeyRiax/VMf4244T02K145s//gCTwvh1N8kSxDp3H0J181dbl54VJFfOFN8+XUWc76xw+AfhHNTqqeZb0JG2YlGSAREVMahe4gwumGWsowGBpg6JwsTK7U72y26A5ImpbAWlKwA6j0+MfaOBlZHqtB58Y9FDvLgSpp1CHg+ADG22j21SZtTnlWmedsl3xr/Pm/x4xWpKvywAmz/4HHNm+rUMF7ckssRnrPIere3FXS6c5r+jCo+o9d9bCArnEG/H/Yx0JHCU61ztA+yU50QyV053Jyo0KbOPUxIYBMf/Dkc1uTcWgJaJc551Ls4+7GYSHzyQjb1L7JC07KY9Ef4fhB9wXc2lC6sY0S7nSTp9krgFJKVFMYDBuBMjkkk/asOL7/GjlWeYANjW4nEJVQHEa5EjpFDveuUHETq6dpREFAVceP9nGdAp5I9tKpQQbmtaaRulMv8VmTLdsZTNXK6HBqO7RGXTnXfe8n6mqGr9ofOzZ03h7QHPVbo7CHTpx4C8tqpck4iPlB6OJXY02/8web8TnlJraKddPEDt5A2DRcSSnFqz3lMxxBh6rRV2d/j9tHZTi+wfMurfECB+K2HlyfgmaMU8wUUtpNgioTizoYEe5nomms=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1703529251; cv=none; b=0lF0lYRAayiyp7kP+Yd6MmQLNUuBbsoZcFFItpIKOEFOX2og32QRGnqAbD+DwOR+CMd6ompaDFUlQH19U+cyLrb1zAU0A5tIKT/D5TJ+4z9FLjJp09d++2LF1CKMaHkr6ZEGaleSdHr4njzEjtJwqF9cXe3pibcTJoBs9D9vsaqv1fdzfuPAjxRgUCTz4E//wzWfCLU+LAWujfkG64W6rT8deoEg+xqx8+Ds8uUf/VVWw4f6/9hk8eEGQHFGJnfEp3291QE7h4uIgDL4nAK8X+BQ1akMiX0WTFVXz8B3iktgw2f9cocIkjtMJhFlv0/bk/rkbKPwFm/1T0T6U4kwkts2PI1wr1eZxZ3H4vLYNp1dxT+6z3HxMHaxHZm38nmPNRL04Cs4kwyawWagQLgeDfBE/37PUPGmHft92UAMVJiDQ6pWZCUNo9gJh9zpe79z2kGX2cZXsYatzca1Bm4zwz4WDf+nZNofCumk0WRwFyOpuMQIwvA8Wu+ajp1MvQ8fYIh8Z/+1j59tAwpfjP0n9gNygG73qa+IOcIOBfe7yf+plkBfJTqvH5fISl0BQrRtTL8ZAnmFcAN/noqVVEVwg+6828mO6SqHhQbH3Pi7kFtqkJvxWIfPYyE/YLpFmBwtl+5leajO5B6ZKTNNeoPhZpMSVM3xO3pnXwxHv8Ujztk=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Mon, 25 Dec 2023 19:34:31 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1703529251; bh=KRHhnjF7ebrrDK0obWPfGT+TlQh9jXnYTATaaV6/v84=; h=Date:From:To:Subject:References:In-Reply-To:From; b=uYtk01l2T7Teok2Th3f19TzoZOdXWSdAoKOeZGbXmVbBMEKySeJ/v+AFLSrCCBnrV noA+Edqjgqh/8cBHb6Z3p8ngtYaBF72fXYFaIF8Xq8oqf2JI/rWSDq2aGdQvl4wEXH uIZsfDLewZauKDsnxG5hKy+YS8c2+lwruvFMmIIRhKtjd1qpPGuH/xunON+JkxZt8B 3OrDYFSFFVfWy72NStc/Yp0OVY0IehwZ/WdZCEEDc55BhuHXklXdEICKm0JI6gNQI3 GU8URpJvuv1Jta0g8ehfuRWBu47U3xEjpK9ZV2KDx2OF0xDifIX8Qzd7yyimImeq9F GjgIqYLdaBRCElC4XRe5bbu6Dda9b0ijOrpo3O1t5dHJSIjcW6WSzzt1m0hLK+zUEw sshiC3+T9lRcRYXUyKQuYlMwLHuarRrlVdJIGq4AN+AN3OuFnKsjs1++HJwvfsITFp NVzmrn6z/9DOP+yyhGHB0hyC32fZBTeMTHQNQD+WXKFSGoznsz08TWqnHANEeCkkqe 3FPUCcqCz1oNgeV1B+UZZZs4/Dps5Nel/+DY9q3Rf1jaDS8ijZjdSGpMkeqLU7GmGU nrejcUBBBfoCNXsS99S/qP93IWtBobUGJx/8/KPtxDsHVkWZsRmy/FcRRF7En1YBys wh8HAGvTXuOjA7yL4H6IYdq4=
- In-reply-to: <ccbdbb55-566e-4fb5-a6ba-4219bcd1704a@isolution.nl>
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
- References: <ccbdbb55-566e-4fb5-a6ba-4219bcd1704a@isolution.nl>
On Mon, Dec 25, 2023 at 05:46:37PM +0100, Ruud H.G. van Tol wrote:
> ? ??listput
> listput( list,x,{n}):
Not that this is a bug in the doc generator, the fixed version outputs
listput(~list,x,{n}):
(~ is an unbreakable space in TeX).
> 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.
>
> ? L = List();
> ? listput(~L, 1)
> %2 = 1
> ? listput(~L, 2)
> %3 = 2
> ? L
> %4 = List([1, 2])
>
> Note the ~ L: this means that the function is called with a reference to L
> and changes L in place.
>
> Is that explicit reference notation still relevant?
Why not ?
We allow to omit the "~" for backward compatibility only.
This is mandatory for user-defined functions, because GP functions
are not prototyped.
Cheers,
Bill.