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]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.