Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread mm w
Hello, Even if you are introducing a new syntax, your approach is wrong to get intersection and interval, I was not talkative but the samples I gave you expose several cases // This isn't bad, but it's not really what i want, and... what I wrote! ;-) so I guess you don't even understand what you

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
Hi, This isn't bad, but it's not really what i want, and... what I wrote! ;-) Samuel. 2009/11/20 mm w <0xcafef...@gmail.com>: > http://code.google.com/p/foundation-kit/source/browse/trunk/FKRange.php > http://code.google.com/p/foundation-kit/source/browse/trunk/FKIndexSet.php > > On Fri, Nov 20,

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
It's clear. ;-) Thanks. 2009/11/20 Rasmus Lerdorf : > Samuel ROZE wrote: >> Hello, >> >> I'm working on two classes, Interval and IntervalList which describe >> an interval and a list of intervals. These intervals are defined using >> the Interval class: >> >> > $interval = new Interval((int) $fro

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
> Are you suggesting new object operator? Short-syntax-array? Short-syntax-interval ! :-) > What exactly are you asking/informing/reporting/whatever? I'm just asking if, for you, brackets can represent intervals... -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Rasmus Lerdorf
Samuel ROZE wrote: > Hello, > > I'm working on two classes, Interval and IntervalList which describe > an interval and a list of intervals. These intervals are defined using > the Interval class: > > $interval = new Interval((int) $from, (int) $to); > ?> > > These intervals can be stored in a l

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread mm w
http://code.google.com/p/foundation-kit/source/browse/trunk/FKRange.php http://code.google.com/p/foundation-kit/source/browse/trunk/FKIndexSet.php On Fri, Nov 20, 2009 at 1:56 PM, Samuel ROZE wrote: > Hello, > > I'm working on two classes, Interval and IntervalList which describe > an interval an

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Hannes Magnusson
On Fri, Nov 20, 2009 at 22:56, Samuel ROZE wrote: [...] > // A list of intervals > $list = [ $from_1, $to_1] + [$from_2, $to_2] + ... [$from_n, $to_n]; > $list_2 = [$from_1, $to_1] + ... + $interval_n; > ?> This made no sense to me. Are you suggesting new object operator? Short-syntax-array? Wh

[PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
Hello, I'm working on two classes, Interval and IntervalList which describe an interval and a list of intervals. These intervals are defined using the Interval class: These intervals can be stored in a list of intervals, using IntervalList: add($interval_1); $list->add($interval_2); ?> Interv