2012/12/16 Stéphane Ducasse <[email protected]>: > polymorphically they are a collection with a first and last :) >
No. (5 to: 4) is different than (3 to: 2) because they specify a different cursor position. Viewed as collection, they have no first nor last, they're just empty Nicolas > On Dec 15, 2012, at 5:30 PM, Igor Stasenko wrote: > >> hi, >> >> i am alone with this problem (or just mentally ill?), why every time i >> use #start and #end protocol for Interval, e.g.: >> >> start := (1 to: 100) start. >> end := (1 to: 100) end. >> >> why i expecting that something called 'interval' should answer its >> start and end (or begin & end, if you like)? >> >> and i always hitting the wall with my head again and again.. because >> there's no such protocol >> and instead (after opening browser and looking at class, i figuring >> that i should use #first/#last, but it is completely unintuitive to >> me).. >> >> So, i am alone with this? Or maybe intervals deserving to have start and end? >> >> >> >> -- >> Best regards, >> Igor Stasenko. >> > >
