Re: Overloading Roles

2009-10-06 Thread Jonathan Worthington
Jon Lang wrote: Concerning that last one: would it be reasonable to have a Discrete role that provides a .succ method, and then overload the Range role? E.g.: role Range[Ordered ::T] { ... } role Range[Ordered Discrete ::T] { ... method iterator ( -> RangeIterator ) { .

Re: r28597 - docs/Perl6/Spec/S32-setting-library

2009-10-06 Thread Eirik Berg Hanssen
Michael Zedeler writes: > Moritz Lenz wrote: >> Jon Lang wrote: >> >>> How do pred and succ work when given Complex values? >>> >> By adding/substracting 1 from the real part, I'd say. Don't know if that >> actually makes sense. >> > It doesn't, because succ should always give the next