Timespan = method error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Timespan = method error

dario trussardi
Hi,

        into Squeak-Kernel-Chronology package the Timespan = method

        erase error because d'ont test the class of the parameter.

        I change it to:

       
        =  comparand
       
        ^ self class = comparand class
                and: [ self start = comparand start ]
                and: [ self duration = comparand duration ]


        Thanks,

                Dario
Reply | Threaded
Open this post in threaded view
|

Re: Timespan = method error

Dale Henrichs
Dario Trussardi wrote:

> Hi,
>
> into Squeak-Kernel-Chronology package the Timespan = method
>
> erase error because d'ont test the class of the parameter.
>
> I change it to:
>
>
> =  comparand
>
> ^ self class = comparand class
> and: [ self start = comparand start ]
> and: [ self duration = comparand duration ]
>
>
> Thanks,
>
> Dario
Thanks Dario,

I've submitted ssue 140
(http://code.google.com/p/glassdb/issues/detail?id=149) to track it ...

Dale