[Simh] An abandoned piece of K&R C
Leo Broukhis
leob at mailcom.com
Fri Nov 3 16:40:33 EDT 2017
Bob,
The symbols may stem from BCPL, but the idea to use them for MIN and MAX is
specific to V7.
In V6, http://www.tuhs.org/cgi-bin/utree.pl?file=V6/usr/source/c/c00.c
doesn't have them.
Leo
On Fri, Nov 3, 2017 at 3:33 AM, Bob Eager <rde at tavi.co.uk> wrote:
> On Thu, 2 Nov 2017 22:14:42 -0700
> Leo Broukhis <leob at mailcom.com> wrote:
>
> > https://retrocomputing.stackexchange.com/q/4965/4025
> >
> >
> > In the UNIX V7 version of the C language, there were the /\ (min) and
> > the \/ (max) operators.
>
> As an aside, many will know that C is based on B, and B was based on
> BCPL.
>
> I used BCPL a *lot*. The logical AND operator in BCPL could be written
> as:
>
> AND
> &
> /\
>
> and logical OR could be written as:
>
> LOGOR
> |
> \/
>
> Perhaps someone decided it would be confusing.
> _______________________________________________
> Simh mailing list
> Simh at trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20171103/18241c2c/attachment.html>
More information about the Simh
mailing list