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,026 of 264,096   
   =?UTF-8?Q?Arne_Vajh=C3=B8j?= to All   
   Re: extending MySQL on VMS   
   18 Aug 25 20:22:11   
   
   From: arne@vajhoej.dk   
      
   On 8/18/2025 7:52 PM, Lawrence D’Oliveiro wrote:   
   > 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.   
      
   Are there any languages invented the last 20 years that does   
   not do integer division for two integer operands?   
      
   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