Re: [Pharo-project] Timespan #intersection: yields wrong result

2011-05-03 Thread Brent Pinkney
On Tuesday 03 May 2011 19:25:47 Johan Brichau wrote: > Hi, > > I traced a bug when working with timespans to the following issue illustrated > in the code snippet below. > The last expression in the snippet yields false, although it should yield > true (imho). > > |start end span| >

Re: [Pharo-project] Issue 3806 in pharo: Duration>>hours is broken

2011-03-14 Thread Brent Pinkney
Hi, Lets end this thread quickly - I don't think it warrants a flame war. I took a hard line on the "toddler" bit as there is a tendency for some, often new members in the community to jump to conclusions about what is a pretty elegent platform (Squeak), and presume oversight or errors by defa

Re: [Pharo-project] Issue 3806 in pharo: Duration>>hours is broken

2011-03-14 Thread Brent Pinkney
> Steps to reproduce: > > 1. self assert: 2 days hours = 48 > 2. do > 3. it > > it will fail > > It's a bug because of what is said in the comment. But please don't even > think in fixing it by changing the comment. Even a toddler would expect to > see 48 hours in a duration of two days. >

Re: [Pharo-project] pangrams

2011-03-04 Thread Brent Pinkney
On Friday 04 March 2011 12:12:45 Pavel Krivanek wrote: > I added an issue 3782 > (http://code.google.com/p/pharo/issues/detail?id=3782) that collects > pangrams for various languages. The font chooser then should show > something like: > > the quick brown fox jumps over the lazy dog > THE QUICK B

Re: [Pharo-project] 'foo' asTime

2010-08-23 Thread Brent Pinkney
> I would really like to have the approach proposed by K. Beck on conversion > methods. Conversion methods for API compatible objects. Of course it will > lead to less compact program (URL readFrom: 'http://' instead of 'http://' > url) but avoids a lot of code in String (of course class extensions

Re: [Pharo-project] [squeak-dev] Re: Menu Registries

2010-04-28 Thread Brent Pinkney
Hi all,+ Could those in the know comment on how this <...> proposal is (or is not) consistent with the fundamental Smalltalk principles that: 1. "an object is send a message and responds with an object" 2. there is no other "magic" in the system. Are we proposing a break fromv this ? If so, IM

Re: [Pharo-project] about DateAndTime =

2010-04-23 Thread Brent Pinkney
> What is Timestamp? A legacy class that has a Date and a TIme object. Predates ANSI DateAndTime. Should be purged IMHO. Brent ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pha

Re: [Pharo-project] about DateAndTime =

2010-04-23 Thread Brent Pinkney
> Do you have examples? For month I have problems, > Then I wonder why > > aDateAndTime = aMonth > is better > than > aDateAndTime month = aMonth Hi, Chris Muller has just told me that I am dead wron on the equality issue, so I stand corrected. He will post soon. On the above, this is a bit of a

Re: [Pharo-project] about DateAndTime =

2010-04-23 Thread Brent Pinkney
On Friday 23 April 2010 21:12:03 Stéphane Ducasse wrote: > Hi all > > I'm trying to fix some tests and I do not like the behavior of DateAndTime > = Comparing aDateAndTime and a something tries to convert the something in > a dateAndTime automagically. I find that not really good because it hides >

Re: [Pharo-project] DateAndTime and TimeStamp precision

2010-02-12 Thread Brent Pinkney
> time1 := DateAndTime now. > time2 := DateAndTime now. > self assert: [ (time2 - time1) > 0 ] When I implemented DateAndTime, the above was true. Has this changed ? Brent ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.