home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.editors      What? Edlin ain't good enough for you?      123,932 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 123,557 of 123,932   
   Kenny McCormack to saitology9@gmail.com   
   Re: The "leading zero means octal" thing   
   05 Jan 25 21:55:10   
   
   XPost: comp.lang.tcl, comp.unix.shell   
   From: gazelle@shell.xmission.com   
      
   In article , saito   wrote:   
   ...   
   >I can't help but think that this may be related to your post regarding   
   >time calculation. I had left this quote in my reply:   
   >   
   >> There is an interesting "octal" problem left as an exercise   
   >   
   >This was exactly the exercise as well. "clock format" leaves leading   
   >zeros in the result depending on what time it was. It is missing "string   
   >trimleft" calls which I'd discovered after some test runs before posting.   
      
   It is, in fact, related to that other thread.  In fact, I had developed an   
   entirely different solution to that problem (very short, in fact) which had   
   been running fine for a few weeks until it happened to hit the dreaded "08"   
   and crashed.  I fixed that basically by adding code using "regsub" to   
   remove any leading zero before doing the calculations.   
      
   I'll have to take a look at "string trimleft".   
      
   --   
   Which of these is the crazier bit of right wing lunacy?   
   1) We've just had another mass shooting; now is not the time to be talking   
   about gun control.   
      
   2) We've just had a massive hurricane; now is not the time to be talking about   
   climate change.   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca