home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,007 of 2,753   
   compilers@is-not-my.name to All   
   Re: First language with conditional assi   
   07 Mar 11 10:14:03   
   
   > 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]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca