From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8806 invoked from network); 15 May 2022 14:47:48 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 15 May 2022 14:47:48 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 4556E2EB77 for ; Sun, 15 May 2022 10:47:48 -0400 (EDT) (envelope-from bounce.mM78e7984543661c669776370b.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 42DAA23FFF16; Sun, 15 May 2022 10:47:48 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=eigenstate.org; spf=pass smtp.mailfrom=ori@eigenstate.org smtp.helo=mimir.eigenstate.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:to:subject:date:from:in-reply-to :mime-version:content-type:content-transfer-encoding:list-help :list-id:list-post:list-subscribe:reply-to:list-unsubscribe; s= sysmsg-1; t=1652626068; bh=727Swt6jlCfiUF4cON4vo8LCrUjQSkjkoDfkt 7Zo3EM=; b=dA+u1ENH5UfOsUISd2Xo16s8XhFygFvZp6iG7YJsLIqVDxQicN2vY Ss3Nxqm4wTsAdGCYJNCHmh80275Cn8w7aIH+nnpIQVWx4ACZmNRoT2WkqH/z7Gq6 6/LtVpjjX06ivybxeLTpWPp2MO12nPyYVnUICZstGpX1iIgI7NNjGg= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1652626068; b=r5rM0W4DHYzIW1U/REKM1X7srUTD7oV8Xd4L4DEbZqhtjLNvNP dw3zuWs/BaApjEDPZfdgSBZnRe5pbY0uWONDWO6qa5T6nCnjIv9mof8j/luG40Uc HaYGolpyp/fzU1poZm1bZKKafe/pke+eZO9U72gNxuP3Q3Z7/h9fc7zNs= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=eigenstate.org; spf=pass smtp.mailfrom=ori@eigenstate.org smtp.helo=mimir.eigenstate.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=eigenstate.org; iprev=pass smtp.remote-ip=206.124.132.107 (mimir.eigenstate.org); spf=pass smtp.mailfrom=ori@eigenstate.org smtp.helo=mimir.eigenstate.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mimir.eigenstate.org policy.ptr=mimir.eigenstate.org; x-return-mx=pass header.domain=eigenstate.org policy.is_org=yes (MX Records found: kusuri.pikopiko.org,mail.pikopiko.org,eigenstate.org,nokogiri.pikopiko.org); x-return-mx=pass smtp.domain=eigenstate.org policy.is_org=yes (MX Records found: kusuri.pikopiko.org,mail.pikopiko.org,eigenstate.org,nokogiri.pikopiko.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=message-id :to:subject:date:from:in-reply-to:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:list-unsubscribe; s=dkim-1; bh=91GCyLVh SzB1F54jcrbSv6iUJdcmoIJdUye2Xq6/+NI=; b=GGsM8EBXDNV0myaZ00JedpJi odsMigG4awYo/M1JXuCOyHRtFL94Qu8fTCob1GqU6rDGWEr++EUngX/n+brkycoS kKybnrBBeK52GbEZ7YRzROVhTABLuEAwvTZcjFUanVSQHNdVyAQ+AgIm2/TXAPTj jQ7JKVtidj3RtwDVZKg= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id A606B148A2E7 for <9fans@9fans.net>; Sun, 15 May 2022 10:47:35 -0400 (EDT) (envelope-from ori@eigenstate.org) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id FC5BA39C847; Sun, 15 May 2022 10:47:35 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1652626055; b=TEelDpJndXYxJsC1/yEpcDcISeSIY11WgSMRQ6pfbbER3j6jO4 YJRNgZfrj8EHeCqCnDGX/ep/JjH0lDpAM3gaydODKNq0328GhxNVqaJdhhyxn8t4 DVE/GGNEKY0+XroUPYV1hkVITYNcCO4btHwibggrwHH+U+8G1UCnC3lJkOk8tuxo 1jV08jmc2zWletHHzzg43PP0bVmlj+DMk7aFjkURQ9MCrJSQLxj9jhYepbHYr/YG jMLG78X/5Z+IsxNUR93R3HxzaHHLGSMiqdFssuT58wottKRoAc3j3PexIL3lsNQz xJNK62i7WV0m75FrnoPkuYWEdSayOeEr8B6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:to:subject:date:from:in-reply-to :mime-version:content-type:content-transfer-encoding; s=arcseal; t=1652626055; bh=co9y+hP1c0i1MAbsBB8QR/OsUoExY/oZCRmo2fSr00M=; b= Ws6IdCZUjC/NVpnMjEnkNNie3zRQ/KFNIGfWa4pyfK5ET9yf+YOxWv6SpzSWwh9h /e8CilFSK2x35tg80Oyv4RX3FcXzp8RBY6QR1549l4xyx8NsFKL2R+hz1CqfbAOZ Rfhphq7BJQblfa+8S2AjkzZIqiQHzNZnFdCliFKACQsP+jDYL11ZUe82c4TwADXC MTkb/TTZ6+AdBcwk8V7q/apBGIYv+17M7OooMOkoNVhqXnBKtlD3DTMs3mSSTBDR Cvd9cvZ0959DDckHyUDvye8byrk+dZ16zJ1zLvCosjOSESwaqCqFWxOIJsNCD2BD mSrtixaTIrq8Wqc1j+Fqcw== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=eigenstate.org; iprev=pass smtp.remote-ip=206.124.132.107 (mimir.eigenstate.org); spf=pass smtp.mailfrom=ori@eigenstate.org smtp.helo=mimir.eigenstate.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mimir.eigenstate.org policy.ptr=mimir.eigenstate.org; x-return-mx=pass header.domain=eigenstate.org policy.is_org=yes (MX Records found: kusuri.pikopiko.org,mail.pikopiko.org,eigenstate.org,nokogiri.pikopiko.org); x-return-mx=pass smtp.domain=eigenstate.org policy.is_org=yes (MX Records found: kusuri.pikopiko.org,mail.pikopiko.org,eigenstate.org,nokogiri.pikopiko.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvfedrheefgdejlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkffvufffhf gjgggtgfesthejjedttddtvdenucfhrhhomhepohhrihesvghighgvnhhsthgrthgvrdho rhhgnecuggftrfgrthhtvghrnhepvdehtdeffeetgeelhfegkeehhfeuhfehvddvieduue ehjeetgeevkeeitdevuefhnecukfhppedvtdeirdduvdegrddufedvrddutdejpdejgedr uddtkedrheeirddvvdehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinh gvthepvddtiedruddvgedrudefvddruddtjedphhgvlhhopehmihhmihhrrdgvihhgvghn shhtrghtvgdrohhrghdpmhgrihhlfhhrohhmpeeoohhrihesvghighgvnhhsthgrthgvrd horhhgqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (eigenstate.org: 206.124.132.107 is authorized to use 'ori@eigenstate.org' in 'mfrom' identity (mechanism 'mx' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="ori@eigenstate.org"; helo=mimir.eigenstate.org; client-ip=206.124.132.107 Received: from mimir.eigenstate.org (mimir.eigenstate.org [206.124.132.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Sun, 15 May 2022 10:47:34 -0400 (EDT) (envelope-from ori@eigenstate.org) Received: from abbatoir.myfiosgateway.com (pool-74-108-56-225.nycmny.fios.verizon.net [74.108.56.225]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 3c11acf2 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9fans@9fans.net>; Sun, 15 May 2022 07:47:33 -0700 (PDT) Message-ID: <93C8C37CBACFF2EA1B7D96EF381C93E4@eigenstate.org> To: 9fans@9fans.net Subject: Re: [9fans] void* Date: Sun, 15 May 2022 10:47:32 -0400 From: ori@eigenstate.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: f87b89f0-d45d-11ec-8bcf-be7af41189bb Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZWNhZWEzYjllYzhlNzA2Ni1NNzhlNzk4NDU0MzY2MWM2Njk3NzYz?= =?UTF-8?B?NzBiPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M78e7984543661c669776370b:1:HMUdQWKILnhGk6i5r1X68FbwjE85BjvqbvBQlv2-0h4 Quoth adr : > On Sun, 15 May 2022, arnold@skeeve.com wrote: >=20 > > It allows you pass pointers of any type without requiring casts: > > > > struct foo s[5] =3D ... > > memmove(s, & s[1], 4 * sizeof(struct foo)); // shift down 1 > > > > The compiler won't complain because any pointer type can be passed > > to a void* parameter. Otherwise you'd need to cast: > > > > memmove((uchar*) s, (uchar*) & s[1], 4 * sizeof(struct foo)); >=20 > Sure, but you could change it to do the same with char*. >=20 char* has legitimate uses for things other than generic pointers, and the conversion complaints catch bugs. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tecaea3b9ec8e7066-M78e79= 84543661c669776370b Delivery options: https://9fans.topicbox.com/groups/9fans/subscription