Re: First language with conditional assignment?

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

          From comp.compilers

Related articles
[5 earlier articles]
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)
Re: First language with conditional assignment? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-03-08)
| List of all articles for this month |

From: compilers@is-not-my.name
Newsgroups: comp.compilers
Date: Mon, 07 Mar 2011 10:14:03 -0000
Organization: Compilers Central
References: 11-03-018
Keywords: history, snobol
Posted-Date: 07 Mar 2011 11:53:02 EST

> In Snobol4 assignment statements are conditional using the syntax
>
> A = LT(x, y) 3


Hi Derek. Sorry, I should have been more clear in my question. I meant C's
conditional assignments of the form 7.13 of K&R:


conditional expression: expression ? expression : expression


I've never seen a way to implement this in one line of SNOBOL and if someone
did come up with a way I don't think it would be very obvious to anyone
reading it! I wonder if a pattern would work...


(goes off mumbling about bringing up an MVS system to try something in
SNOBOL4)
[No need. See http://www.snobol4.org/csnobol4/curr/ -John]



Post a followup to this message

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