Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.os.vms    |    DEC's VAX* line of computers & VMS.    |    264,096 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 262,991 of 264,096    |
|    =?UTF-8?Q?Arne_Vajh=C3=B8j?= to All    |
|    Re: extending MySQL on VMS    |
|    16 Aug 25 13:20:43    |
   
   From: arne@vajhoej.dk   
      
   On 8/15/2025 6:42 PM, Lawrence D’Oliveiro wrote:   
   > On Fri, 15 Aug 2025 09:55:17 -0400, Arne Vajhøj wrote:   
   >> But I believe most curly bracket languages inherited from C in this   
   >> regard.   
   >   
   > Python took over the C operator hierarchy, with one subtle little   
   > twist. It slightly tweaked the precedence of the bitwise operators   
   > relative to the comparisons, so you don’t need parentheses in   
   > expressions like   
   >   
   > (C) («val» & «bitmask») == «testvalue»   
   > (Python) «val» & «bitmask» == «testvalue»   
   >   
   > I have asked on comp.lang.c whether any existing C code could be   
   > broken by making the same change in that language. In principle it   
   > could, but nobody could come up with any real-world examples.   
      
   What about:   
      
   if(reperr & sys$put(&rab, 0, 0) != RMS$_NORMAL)   
   {   
    printf("Houston we have a problem\n");   
   }   
      
   ?   
      
   Arne   
      
   --- 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