Re: First language with conditional assignment?

compilers@is-not-my.name
Mon, 07 Mar 2011 10:05:56 -0000

          From comp.compilers

Related articles
[4 earlier articles]
Re: First language with conditional assignment? kym@kymhorsell.com (2011-03-05)
Re: First language with conditional assignment? robin51@dodo.com.au (robin) (2011-03-05)
Re: First language with conditional assignment? news@cuboid.co.uk (Andy Walker) (2011-03-05)
Re: First language with conditional assignment? monnier@iro.umontreal.ca (Stefan Monnier) (2011-03-05)
Re: First language with conditional assignment? derekrss@yahoo.ca (Derek) (2011-03-06)
Re: First language with conditional assignment? compilers@is-not-my.name (2011-03-07)
Re: First language with conditional assignment? compilers@is-not-my.name (2011-03-07)
Re: First language with conditional assignment? compilers@is-not-my.name (2011-03-07)
Re: First language with conditional assignment? neitzel@gaertner.de (2011-03-07)
Re: First language with conditional assignment? bc@freeuk.com (Bartc) (2011-03-07)
Re: First language with conditional assignment? alex.colvin@valley.net (mac) (2011-03-07)
Re: First language with conditional assignment? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-03-07)
Re: First language with conditional assignment? robin51@dodo.com.au (robin) (2011-03-08)
[1 later articles]
| List of all articles for this month |
From: compilers@is-not-my.name
Newsgroups: comp.compilers
Date: Mon, 07 Mar 2011 10:05:56 -0000
Organization: Compilers Central
References: 11-03-009
Keywords: syntax, design
Posted-Date: 07 Mar 2011 11:52:00 EST

> compilers@is-not-my.name wrote:
>
> ALGOL, I believe ALGOL 60 (I don't know the versions very well)
> has the "conditional arithmetic expression" as:
>
> A := IF I<0 THEN R ELSE 3;
>
> That is the example from Baumann, et. al, "Introduction
> to ALGOL" from 1964, I believe describing ALGOL 60.
> I don't know when it originated in ALGOL.


Thanks. I had thought I remembered something from ALGOL but I don't have any
manuals handy and I haven't used it in ages. It's interesting to see just
how much influence ALGOL has had on language design. Many features are so
basic and obvious looking back, at the time how revolutionary they were! I
don't know that I ever used ALGOL or ALGOL60. I believe the only compiler I
used was from ALGOL 68 but it's been a long time.


> (Note that the term "conditional assignment" might be used
> to describe the C construct if(a) b=c; and that many RISC
> architectures have a "conditional load" instruction that allows
> doing conditional operations without branching.)


I guess I should have been more clear in my question. Sorry for not having
given an example. But you answered my question anyway! Thanks Glen.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.