home bbs files messages ]

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 263,046 of 264,096   
   =?UTF-8?Q?Arne_Vajh=C3=B8j?= to Simon Clubley   
   Re: extending MySQL on VMS   
   19 Aug 25 11:03:43   
   
   From: arne@vajhoej.dk   
      
   On 8/19/2025 8:20 AM, Simon Clubley wrote:   
   > On 2025-08-18, Arne Vajhøj  wrote:   
   >>> It is _always_ safe to write code which assumes short circuiting is   
   >>> not in use and it will work exactly the same even in the presence   
   >>> of a compiler which generates short circuiting code.   
   >>   
   >> Not true.   
   >>   
   >> Not if the second expression has side effects.   
   >>   
   >> I am sure that you don't want expressions with side effect. But   
   >> it happens.   
   >   
   > Tell me Arne, given what you now know about me, do you really think   
   > I would ever write code that had expression side effects like that ? :-)   
      
   I am sure you don't want to do that. As I wrote.   
      
   But what about the guy sitting next to you working on the same project?   
      
   Unless you have a coding convention against it and use a static code   
   analyzer to enforce the rule, then it could happen.   
      
   You should not assume everybody on the project write code the same   
   way as you.   
      
   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