Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-23 Thread Terrence Enger
Michael, Sorry to be slow responding. I have not been ignoring you just for the sake of ignoring you. On Thu, 2011-08-18 at 20:36 +0100, Michael Meeks wrote: > Hi Terrence, > > On Thu, 2011-08-18 at 14:27 -0400, Terrence Enger wrote:But of course, before > creating bug 40273, I did a bug searc

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-18 Thread Bjoern Michaelsen
Hi Michael, Terrence, On Thu, 18 Aug 2011 11:22:10 +0100 Michael Meeks wrote: > Heh - unfortunately, incremental building can be fraught with > problems > - mostly around dependencies; quite possibly we should have a 'make > dep-clean' rule (or somesuch) that discards inter-file dependenci

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-18 Thread Bjoern Michaelsen
Hi Terry, On Tue, 16 Aug 2011 11:50:20 -0400 Terrence Enger wrote: > I do have another "something goes wrong" that I have not > mentioned here because I cannot say exactly how to make it > go wrong. Is there a way that I can make LibreOffice log > my actions--keystrokes, mouse clicks--so that I

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-18 Thread Michael Meeks
Hi Terrence, On Thu, 2011-08-18 at 14:27 -0400, Terrence Enger wrote: > I just wish I could stop thinking about ways to > attack the problem. ... I thought of another way > even as I was writing the previous sentence. :-) > One SEGV has happened only with an earlier build. I do have > a

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-18 Thread Terrence Enger
On Thu, 2011-08-18 at 11:22 +0100, Michael Meeks wrote: > Hi Terence, > > On Tue, 2011-08-16 at 11:50 -0400, Terrence Enger wrote: > > Resolution: I hereby resolve that I shall ask about my next > > rebuild problem *before* I confuse things beyond > > description. > > Heh - unfortunately, i

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-18 Thread Michael Meeks
Hi Terence, On Tue, 2011-08-16 at 11:50 -0400, Terrence Enger wrote: > Resolution: I hereby resolve that I shall ask about my next > rebuild problem *before* I confuse things beyond > description. Heh - unfortunately, incremental building can be fraught with problems - mostly around depen

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-16 Thread Terrence Enger
On Tue, 2011-08-16 at 15:13 +0100, Michael Meeks wrote: > Hi Terry, > If you're discussing code in detail you're much more than welcome > here[1] :-) really looking forward to your first patch - do you have > problems building that we can help out with ? Harrumph. I started last week to do

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-16 Thread Thorsten Behrens
Michael Meeks wrote: > Huh - it is -extremely- valuable to do global cleans that remove > unpleasant and hard-to-grok implementations from the code. > Sure. > Just using the latest/newest/trendiest 'time' class from A.B.C. > place de jour in new code is a(nother) maintenance nightmare > wait

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-16 Thread Michael Meeks
Hi Terry, On Thu, 2011-08-11 at 10:45 -0400, Terrence Enger wrote: > Meta-reply: I am far from contributing a patch, so my > thoughts are off-topic for this list. I am happy to take > this conversation to private email or to the discussion list > if that would better suit the list recipients.

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-16 Thread Michael Meeks
On Thu, 2011-08-11 at 16:55 +0200, Thorsten Behrens wrote: > It's unclear to me, how valuable it is to fix-up tools/time.hxx & > all client code, vs. to use e.g. > http://www.boost.org/doc/libs/1_47_0/doc/html/chrono.html when you > need a sane implementation in new code ... Huh - it is -

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-13 Thread Eike Rathke
Hi Lubos, On Friday, 2011-08-12 20:25:26 +0200, Lubos Lunak wrote: > > 2) Why should GetSec() of a negative delta return a negative amount of > >seconds? > > I didn't say it should be negative, it just should be sane. Which in this > case should be ... uhm ... oh well, another botched API.

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-12 Thread Lubos Lunak
On Thursday 11 of August 2011, Thorsten Behrens wrote: > Lubos Lunak wrote: > > As much as I don't like it, I can possibly see at least some reason for > > time having 25 hours, but 10 seconds without 20 seconds being 10 seconds > > (and there is actually explicit code to ensure that)? > > > > Do

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-12 Thread Lubos Lunak
On Thursday 11 of August 2011, Eike Rathke wrote: > > 2) Why should GetSec() of a negative delta return a negative amount of >seconds? I didn't say it should be negative, it just should be sane. Which in this case should be ... uhm ... oh well, another botched API. > The probability that so

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-11 Thread Eike Rathke
Hi Lubos, On Thursday, 2011-08-11 14:43:28 +0200, Lubos Lunak wrote: > #include > ... > printf( "%d\n", Time( 25, 0, 0 ).GetHour()); > printf( "%d\n", ( Time( 1, 0, 10 ) - Time( 1, 0, 20 )).GetSec()); > > 25 > 10 > > As much as I don't like it, I can possibly see at least some reason for time

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-11 Thread Thorsten Behrens
Lubos Lunak wrote: > As much as I don't like it, I can possibly see at least some reason for time > having 25 hours, but 10 seconds without 20 seconds being 10 seconds (and > there is actually explicit code to ensure that)? > > Does somebody know why the Time class does either of these and how

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-11 Thread Terrence Enger
Meta-reply: I am far from contributing a patch, so my thoughts are off-topic for this list. I am happy to take this conversation to private email or to the discussion list if that would better suit the list recipients. On Thu, 2011-08-11 at 14:43 +0200, Lubos Lunak wrote: > [ Premise: If you th

Re: [Libreoffice] Class Time and its funny ideas about time

2011-08-11 Thread Nigel Hawkins
On Thu, 2011-08-11 at 14:43 +0200, Lubos Lunak wrote: > Does somebody know why the Time class does either of these and how much would > break if I fixed these two to be sane? I don't know, but I would guess that it is used for delta times as well as "wall clock" times. That would certainly explai

[Libreoffice] Class Time and its funny ideas about time

2011-08-11 Thread Lubos Lunak
[ Premise: If you think adding something to LO code is easy, you are still an inexperienced LO developer. ] #include ... printf( "%d\n", Time( 25, 0, 0 ).GetHour()); printf( "%d\n", ( Time( 1, 0, 10 ) - Time( 1, 0, 20 )).GetSec()); 25 10 As much as I don't like it, I can possibly see at least