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,021 of 264,096    |
|    Lawrence =?iso-8859-13?q?D=FFOlivei to All    |
|    Re: extending MySQL on VMS    |
|    18 Aug 25 23:52:37    |
   
   From: ldo@nz.invalid   
      
   On Mon, 18 Aug 2025 19:11:48 -0400, Arne Vajhøj wrote:   
      
   > printf("%d %d\n", iv / 2, iv % 2);   
      
   The interpretation in C of “/” being an integer operation with integer   
   operands, and float otherwise, is generally regarded as a Bad Idea. I   
   think it caught the infection from Fortran.   
      
   Python actually started out following this interpretation, then changed to   
   always returning a float, introducing the additional separate “//”   
   operator for when you explicitly want integer division.   
      
   Even PHP, bad as it is in other ways, did not follow the C mistake.   
      
   --- 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