From: Harry Kalogirou <harkal@gmx.net>
To: Riley Williams <rhw@InfraDead.Org>
Cc: Linux-8086 <linux-8086@vger.kernel.org>
Subject: Re: Ambiguities
Date: 22 Apr 2002 00:21:09 +0300 [thread overview]
Message-ID: <1019424067.495.27.camel@cool> (raw)
In-Reply-To: <Pine.LNX.4.21.0204212042001.1614-100000@Consulate.UFP.CX>
Την Κυρ, 21-04-2002 στις 22:50, ο/η Riley Williams έγραψε:
> Hi Harry.
>
> > I noticed in the CHANGELOG that you resolved some ambiguities in the
> > source. As far as I know X =* Y doen't mean X = X * Y, that is X *=
> > Y. I wonder what are you trying to say?
>
> The problem here is an old one - the original K&R C specification
> allowed the operation assignment combinations to be specified either
> way round, so the sequences *= and =* *CAN* be regarded as the same.
> The same is also true of the other operators. I hit this problem at
> university back in 1996, as the standard C compiler on one of the
> systems was an old compiler that actually implemented that behaviour,
> and the standard compilers on the other machines were newer ones that
> didn't implement it.
>
> Most current C compilers do not implement that aspect of K&R and, as far
> as I know, bcc is amongst the ones that didn't. However, when indent
> pointed them out to me, I felt that the safest solution was to simply
> get rid of the ambiguities in the first place, so I went through the
> code and did just that. The sequence I used was to do `make dup` to
> create a test copy of the source, then do `make indent` on the test
> copy to locate the occurrances, and finally to edit the original copy
> and insert the spaces needed to remove the ambiguities.
>
> Best wishes from Riley.
>
Very interesting _feature_... I wonder what was they thinking!!?
Harry
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2002-04-21 21:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-21 19:28 Ambiguities Harry Kalogirou
2002-04-21 19:50 ` Ambiguities Riley Williams
2002-04-21 21:21 ` Harry Kalogirou [this message]
2002-04-22 17:59 ` Ambiguities Riley Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1019424067.495.27.camel@cool \
--to=harkal@gmx.net \
--cc=linux-8086@vger.kernel.org \
--cc=rhw@InfraDead.Org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.