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,602 of 2,753    |
|    gah4 to Roger L Costello    |
|    Re: What is the meaning of an expression    |
|    14 Jan 22 17:58:01    |
   
   From: gah4@u.washington.edu   
      
   On Friday, January 14, 2022 at 9:40:24 AM UTC-8, Roger L Costello wrote:   
   > Hello Compiler Experts!   
      
   > In some book I read this statement:   
      
   > The meaning of an expression is   
   > the value of the expression.   
      
   I think that is wrong.   
      
   C is a little strange as languages go, but you can have an expression   
   statement like:   
      
    1 + 1   
      
   which says to add one and one, and then ignore the result. It has a value, but   
   no meaning.   
   I suspect most compilers won't even do it, but I never looked.   
      
   More common is a function call with side effects, and ignore the value.   
      
   printf("Hi there!");   
      
   is an expression with the value ignored, but with a meaning.   
      
   --- 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