Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 16/01/12 16:59, Eike Rathke wrote:
b) not so risky ( I think ), and... would change the present
>  behaviour in consistent way for treatment of minus operator
>  -                    if( GetType() == SbxDATE || rOp.GetType() == SbxDATE )
>  +                    if( ( eOp == SbxPLUS || eOp == SbxMINUS )&&  (
>  ( GetType() == SbxDATE || rOp.GetType() == SbxDATE )&&  ( GetType()
>  != rOp.GetType() ) ) )
That one (b) looks good.
ok, good you don't see additional problems then

>  c) risker variant of b that allows all operations on a date type to
>  retain it's date type
> > - if( GetType() == SbxDATE || rOp.GetType() == SbxDATE )
>  +                    if( ( GetType() == SbxDATE || rOp.GetType() ==
>  SbxDATE )&&  ( GetType() != rOp.GetType() ) )
I don't spot sense in 2*today() =>  2124-02-02;-)

   Eike
well like I said neither do I but iirc Andrew mentioned he could think of some possible strange use cases ( maybe I misunderstood him ) Anyway I will commit the solution we agreed on. Andrew, if still feel strongly enough that the 'Date' type should be preserved then I guess you can submit an extra patch and rational to the list.

thanks again

Noel

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.