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, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2477 invoked from network); 14 May 2020 04:41:33 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 14 May 2020 04:41:33 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id BB8829C6AC; Thu, 14 May 2020 14:41:31 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id BB4659C668; Thu, 14 May 2020 14:41:08 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=bsdimp-com.20150623.gappssmtp.com header.i=@bsdimp-com.20150623.gappssmtp.com header.b="o7BW1jxE"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id D572D9C668; Thu, 14 May 2020 14:41:06 +1000 (AEST) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) by minnie.tuhs.org (Postfix) with ESMTPS id 0E4099C604 for ; Thu, 14 May 2020 14:41:06 +1000 (AEST) Received: by mail-qk1-f170.google.com with SMTP id f13so1849242qkh.2 for ; Wed, 13 May 2020 21:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=HSmLec0baSgH18YTIESn7VAQ4+eQinsjp8YszxD7vk4=; b=o7BW1jxE6Bq34AjaNh0lUhhgmBWbwhF6+SPHHzNUO7e58BN4m1AsFJUN3l6u9S/Fcw 9NqQ4P23FRLAUsnX5bMVRhU1k8MU033Z3Mg+W7MgvyiPNjcisU0ueK//xANtQubUoU7C asxmyI/W6nOnOkni7y3FLaI0MwKi0d2oUshUA7JVUBFGCsgqdUhuUndnVgx13il+3ua+ Ab/xtjMv7KEf4JTQnlUpexAF154S6zB/PNdQ6DPoZ7ItVo9Q1xlX29Ekg3LRU4w7/aUf D//0acf80FZrlOkGpB2hr7clMwyZKN0PDVNkM4Xx46YYVUjjXde1F/2QQVDxFe8njtO3 vURA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=HSmLec0baSgH18YTIESn7VAQ4+eQinsjp8YszxD7vk4=; b=pAbThbn94s+HmkrJhSxW2JfCs6Uwkcg9dGjDLEeQ3x324jX4L67BgwOcEmsBl+aX5n aTosDpXo9iKp5itS6sIHqEqAM1TkBEl98KJ+/yBq6woS1th9QtTIMXfRQWO0xwmuYq2D Nwsl/xJ5mJ/lXrIICGZgOdU4thSRSagDlITgzLmqZASXETJ2KKJxP91aDSez3snCi28L wuC62mcWLjRsbM8Pyi/RRMZjSikOMixpeMM+Kdb51xPUd0Bxr0BXiQlwbzviO8OQnTVQ JEC7m+6gIMcH6m+96ZYweA7yJwm0tTZ03qCmlwRIBAI4TECzHtG/8dBiIYxhW29CeHNQ KOLw== X-Gm-Message-State: AOAM532AtbYYb3CzEHo0DLe8C8zBg3/8lVQDX6kTCx1WkPCrQGWGEdmq 8Ei9lX69QrAZ3eDIMRYzPXoEI6YbkzCHJpIL42vSApl7dbM= X-Google-Smtp-Source: ABdhPJxe4j8PY5VId3B6M8X3BzRwa4vs0T/o+u9gA+48M5O4pgN4CayediptUD1WJP9tYn6IBSIxEEcUFwszMJSTAyI= X-Received: by 2002:a37:a9d6:: with SMTP id s205mr3050983qke.380.1589431264533; Wed, 13 May 2020 21:41:04 -0700 (PDT) MIME-Version: 1.0 References: <3cb1126796176debe28aa66672ba27ae@yaccman.com> <20200511005745.GL17035@mcvoy.com> <357EFE54-BD94-4C10-8C43-C6735BF7D317@via.net> <20200511202555.GU17035@mcvoy.com> In-Reply-To: From: Warner Losh Date: Wed, 13 May 2020 22:40:51 -0600 Message-ID: To: The Unix Heritage Society mailing list Content-Type: multipart/alternative; boundary="000000000000eaf24605a5944d75" Subject: Re: [TUHS] v7 K&R C X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000eaf24605a5944d75 Content-Type: text/plain; charset="UTF-8" On Wed, May 13, 2020, 10:22 PM Greg A. Woods wrote: > At Thu, 14 May 2020 09:36:57 +1000 (EST), Dave Horsfall > wrote: > Subject: Re: [TUHS] v7 K&R C > > > > On Tue, 12 May 2020, Paul Winalski wrote: > > > > > o operator overloading > > > > [...] > > > > I never could figure out why Stroustrup implemented that "feature"; > > let's see, this operator usually means this, except when you use it in > > that situation in which case it means something else. Now, try > > debugging that. > > Well in the true OO world the ability to "overload" a message (aka what > is sometimes effectively an operator) allows a wise designer to apply > the traditional meaning of that message (operator) to a new kind of > object. Attempts to change the meaning of a message (operator) when > applied to already well known objects is forbidden by good taste and > sane reviewers. > > C++ being a bit of a dog's breakfast seems to have given some people the > idea that they can get away with abusing operator overloading for what > can only amount to obfuscation. > Queue rant about << and >> overloading... Warner -- > Greg A. Woods > > Kelowna, BC +1 250 762-7675 RoboHack > Planix, Inc. Avoncote Farms > --000000000000eaf24605a5944d75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, May 13, 2020, 10:22 PM Greg A. Woods <woods@robohack.ca> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">At Thu, 14 May 2020 09:36:57 +1000 (EST), Dav= e Horsfall <dave@horsfall.org> wrote:
Subject: Re: [TUHS] v7 K&R C
>
> On Tue, 12 May 2020, Paul Winalski wrote:
>
> > o operator overloading
>
> [...]
>
> I never could figure out why Stroustrup implemented that "feature= ";
> let's see, this operator usually means this, except when you use i= t in
> that situation in which case it means something else.=C2=A0 Now, try > debugging that.

Well in the true OO world the ability to "overload" a message (ak= a what
is sometimes effectively an operator) allows a wise designer to apply
the traditional meaning of that message (operator) to a new kind of
object.=C2=A0 Attempts to change the meaning of a message (operator) when applied to already well known objects is forbidden by good taste and
sane reviewers.

C++ being a bit of a dog's breakfast seems to have given some people th= e
idea that they can get away with abusing operator overloading for what
can only amount to obfuscation.

Queue rant about << and >> overl= oading...

Warner=C2=A0

--
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Greg A. = Woods <gwoods@acm.org>

Kelowna, BC=C2=A0 =C2=A0 =C2=A0+1 250 762-7675=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>=C2=A0 =C2=A0 =C2=A0Avoncote Farms = <woods@avoncote.ca>
--000000000000eaf24605a5944d75--