Re: Traits: to renew OO inheritance in a hacker style discussion

2004-02-16 Thread Larry Wall
On Fri, Feb 13, 2004 at 01:22:38PM +0300, Dmitry Dorofeev wrote: : My stupid question still apply. : Will it be possible to have : 'Exclusion' which forms a new trait|Role by removing a method from an : existing trait|Role ? There will certainly be some way to exclude or at least hide the method

Re: The Sort Problem

2004-02-16 Thread Rod Adams
Damian Conway wrote: Uri persisted: > but int is needed otherwise? int is more commonly a sort key than float. > it just feels asymetrical with one having a symbol and the other a named > operator. Sorry, but that's the way the language works. The more general and usual conversion (to number, n

Re: The Sort Problem

2004-02-16 Thread Luke Palmer
Uri Guttman writes: > > "LP" == Luke Palmer <[EMAIL PROTECTED]> writes: > > LP> Uri Guttman writes: > >> because that would be the default comparison and the extracted key value > >> would be stringified unless some other marker is used. most sorts are on > >> strings so this would be

Re: The Sort Problem

2004-02-16 Thread Luke Palmer
Damian Conway writes: > type KeyExtractor ::= Code(Any) returns Any; > > type Comparator ::= Code(Any, Any) returns Int; > > type Criterion::= KeyExtractor > | Comparator Pair(KeyExtractor, Comparator) > ; > > type Criteria