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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14037 invoked from network); 15 May 2022 15:24:00 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 15 May 2022 15:24:00 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id D05DA2A5E9 for ; Sun, 15 May 2022 11:23:55 -0400 (EDT) (envelope-from bounce.mM697dfcf01429a681db4155b2.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id CDE4F2403A07; Sun, 15 May 2022 11:23:55 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Uh9tBiqn header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=crossd@gmail.com smtp.helo=mail-oi1-f179.google.com; 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=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1652628235; bh=kSrKl1iv7msYWKve 9WsHftpN2KVV+tjjxKL3VdHECHg=; b=ZU0GlHeaEqZz8U1vWFLaSzgQezyRxVLl u0zTKcly3PYfh9LaLIe9ItyyARGrvgIBYC3/2XIATbxqXX7XE8XgGs0PLg94KP+i +/xg/b574JZKPm8DdZ3xdHga9JO2ur75OKdzXnLTSuQzrP0nId0ePnk+SSzZZxra 0wncKyBfMMw= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1652628235; b=st4RxXEdpgNGH6DDiAEGdEjVvq2YzQvgDmjgvgWnhI54q6WaUT keYL/dPaRmm6oU43NFVwNuKiKVFxpUvUYRsFJ0Gm6s7amlRkOdlL9o6EUAojX9Wa 8BY0szqu7LQ56pL6rjvei9KGzjSYpibqy4u8m5CPawR1AQ4kheB/lC1UU= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Uh9tBiqn header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=crossd@gmail.com smtp.helo=mail-oi1-f179.google.com; 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=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Uh9tBiqn header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.179 (mail-oi1-f179.google.com); spf=pass smtp.mailfrom=crossd@gmail.com smtp.helo=mail-oi1-f179.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=xzIHb9Sz; x-me-sender=none; x-ptr=pass smtp.helo=mail-oi1-f179.google.com policy.ptr=mail-oi1-f179.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com); 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= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=hcb1CjfQvBX/Hzbnpw1JxHZDMR0MQwPoAFY/4YWSSqA=; b=CX1Y2UVoNU41 +At1+oSTPIetrQmiKzheLo1yIy6BGColqYWCQetf2jE3O2PfyENzhSlfXKp2lZLq dmJWpiy5EVFAzmYDL9hEvAY5Gp9Vdx9U1s3Oul4CaVNkFi2vl9coLpq96nJ7WQgU ime7yQjDQwnXklQwWYM8iGzh+CavzdY= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id BD40D148A564 for <9fans@9fans.net>; Sun, 15 May 2022 11:23:43 -0400 (EDT) (envelope-from crossd@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id D58424FE99D; Sun, 15 May 2022 11:23:43 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1652628223; b=hrf0rLAcSz0jZLSDuCe6lUiURfd5t/ak2wrgvg9KXi3/lkDCa3 l5VMdKOnXc0SrM/+eqAzKUvV6N2c1JhCUNXr4IVZO4Sgde2lkmRonfXxpnPLXRY+ sIHbTe/Emb8b1u9l6kGhyp8gkcwC4AjOjHpMfOxqBV+47rZA0YypWeMIVuqKOdD0 bgoTcUUbwjRYvYy5E1bjC9HqrBRCmiC8gf+QzQZ+/rO+E6juUYzD9VEhmEkLzDSC q1uwaAnACha9jDlBv3A/kTjmjb3gUYo4Z4+VE5DPBYuXbkuk/rwlyV2RUL6N7nf3 IdAIFLRw4NXZ4aE9mgCSG62O1VMJ1tzoEv3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1652628223; bh=rf3GQ2t9M1RVb88WtY2djdJtLFbojw6zbPH4KMFKZ0g=; b=ByQUE21Sb8Ao PTTqox+593SNDVf5IWmiM9oe8+AdwYVx5hQvVzyMrpvvZjMMby9ToLtlOOI/7EgN umVRQ8s9XjGhE/9xQz8RFPWJg2qPjjKsEIk7xSJc038pr9hTMJxYqY3oXcPzZCGG Ps2nAqqJSiufTAGlIqsPXHo4C77q8SH4HWEnv0RGsi6KIQ8aumYa0BarkPXYfiJu lBgbUjDcreXyPgs52wo4fHhe5DaB0Wd8k6li7y7lm1REtv9rx+1b+yfbiGpIMTN+ hCejutRAv+k2vL5dlS84+8VlCTUT/WkaQ6fA5abexehoOD85uK2GYlKQM9i68OtH 0cjvYsIX0Q== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Uh9tBiqn header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.179 (mail-oi1-f179.google.com); spf=pass smtp.mailfrom=crossd@gmail.com smtp.helo=mail-oi1-f179.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=xzIHb9Sz; x-me-sender=none; x-ptr=pass smtp.helo=mail-oi1-f179.google.com policy.ptr=mail-oi1-f179.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com); 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: gggruggvucftvghtrhhoucdtuddrgedvfedrheefgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepgghfjgfhff fkuffvtgesrgdtreertddtjeenucfhrhhomhepffgrnhcuvehrohhsshcuoegtrhhoshhs ugesghhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepfeefvefgfedvueevhfffvd fhffeuvdevgfffgffgleegieeiveduleegieevgeejnecukfhppedvtdelrdekhedrudei jedrudejleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvtd elrdekhedrudeijedrudejledphhgvlhhopehmrghilhdqohhiuddqfhdujeelrdhgohho ghhlvgdrtghomhdpmhgrihhlfhhrohhmpeeotghrohhsshgusehgmhgrihhlrdgtohhmqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'crossd@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="crossd@gmail.com"; helo=mail-oi1-f179.google.com; client-ip=209.85.167.179 Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) (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 11:23:43 -0400 (EDT) (envelope-from crossd@gmail.com) Received: by mail-oi1-f179.google.com with SMTP id l16so15856291oil.6 for <9fans@9fans.net>; Sun, 15 May 2022 08:23:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=rf3GQ2t9M1RVb88WtY2djdJtLFbojw6zbPH4KMFKZ0g=; b=xzIHb9SzwQh/X/T/FLQLaWG9VN6QqbHKuVjeBe3Xl2WTr8dTdap5ywlob8YUn1HzAk DAPff42TwL9EO9YZw0Tmjmnh09IdsNgNUCR5AfieWear3lUovnZ/8v0y/cdbxftszV0g NMZpHmgm5qsq9wR3pBNhckkfYpNqekscP+DK8v3S+3DU0Ont0dfMzZH1YIAWI1n0MfXf 3QaLVxia349vUa6OU23nvMn/CwfKWpkSMI3nVszlGZrxbtuEfVmQ8NK3IcVx+Rj+gF2G nw4OWdbcWwYk7kyFRJAXe9bCuz5DK4lSlrnnZHBAtwfBi/t+fDXVLOEn1L5UZaz7nCgA P21g== X-Gm-Message-State: AOAM5303EyOhJSGbydKVCvGyRmASfnBsLQl8Y3aOvcR5+wrCAEy49A8O N53RLLt7CcwMtFa/qwzScpkLgq6rCjFaaEpnQViryjS7 X-Google-Smtp-Source: ABdhPJz33Y3T1cqBeuZeeg0OpaQaxwaHdNOtASg7Taf1gRJiy82JcXDbuOIBKxW/Ph7gJ/q1SQ6/sqLQLxMe+DYYmrU= X-Received: by 2002:a05:6808:1315:b0:328:a9b7:bd6d with SMTP id y21-20020a056808131500b00328a9b7bd6dmr6204854oiv.278.1652628222182; Sun, 15 May 2022 08:23:42 -0700 (PDT) MIME-Version: 1.0 References: <7f6454b9-b5b-d2ac-c5b0-58e6d872e3fa@SDF.ORG> In-Reply-To: From: Dan Cross Date: Sun, 15 May 2022 11:23:06 -0400 Message-ID: Subject: Re: [9fans] void* To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary=00000000000021096105df0e7e55 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 044aacca-d463-11ec-9395-879423543431 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZWNhZWEzYjllYzhlNzA2Ni1NNjk3ZGZjZjAxNDI5YTY4MWRiNDE1?= =?UTF-8?B?NWIyPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M697dfcf01429a681db4155b2:1:UoHeSSzSoHURThU3vaKMLuxEtbXGWAUQ3Cej1HVxoOQ --00000000000021096105df0e7e55 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, May 15, 2022 at 9:16 AM adr wrote: > On Sun, 15 May 2022, adr wrote: > > What I mean is if we are going to follow C99 in the use of void*, > > we should allow arithmetic on them. > > Let me be clear, I know that C99 requires the pointer to be a > complete object type to do arithmetic, and I like that, is consistent. > But then I don't see the point to use void* as a generic pointer. I confess that I am confused about what, precisely, you are asking for. You are correct that standard C only allows arithmetic on pointers to complete object types. But `void *` is not a pointer to a complete object type, and so therefore pointer arithmetic on pointers of type `void *` is illegal. So in that sense, Plan 9 C is already following C99. - Dan C. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tecaea3b9ec8e7066-M697df= cf01429a681db4155b2 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --00000000000021096105df0e7e55 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Sun, May 15, 2022 at 9:16 = AM adr <adr@sdf.org> wrote:
<= /div>
On Sun, 15 May 2022, adr wrote:
> What I mean is if we are going to follow C99 in the use of void*,
> we should allow arithmetic on them.

Let me be clear, I know that C99 requires the pointer to be a
complete object type to do arithmetic, and I like that, is consistent.
But then I don't see the point to use void* as a generic pointer.

I confess that I am confused about what, = precisely, you are asking for.

You are correct t= hat standard C only allows arithmetic on pointers to complete object t= ypes. But `void *` is not a pointer to a complete object type, and so there= fore pointer arithmetic on pointers of type `void *` is illegal. So in that= sense, Plan 9 C is already following C99.

 = ;       - Dan C.

9fans / 9fans / see discussions + participants + delivery&n= bsp;options Permalink
= --00000000000021096105df0e7e55--