Re: Valid hash keys?

2005-03-01 Thread Alex Burr
On Sun, Feb 27, 2005 at 03:36:42PM -0700, Luke Palmer wrote: But the biggest problem is that if the user overloads 'equal' on two objects, the hash should consider them equal. We could require that to overload 'equal', you also have to overload .hash so that you've given some thought to the

Re: Valid hash keys?

2005-02-27 Thread Alex Burr
On Sun, Feb 27, 2005 at 11:57:30PM +0100, Thomas Sandlaß wrote: Alex Burr wrote: [..] Actually, it would be useful sometimes to be able to give a hash an explicit canonicalizer: my %msdos_files is canonicalized_by lc; my %fractions is canonicalized_by gcd; Shouldn't that be handled

Re: Semantics of vector operations

2004-02-02 Thread Alex Burr
--- Andy Wardley [EMAIL PROTECTED] wrote: Adding unicode operators to Perl will just reinforce its reputation as a line noise language. Perl6, the language with *real* runes. Come to think of it, some of the ogham runes would look more incharacter as a 'distribute' operator than

Re: Macro arguments themselves

2003-09-13 Thread Alex Burr
--- Austin Hastings [EMAIL PROTECTED] wrote: --- Luke Palmer [EMAIL PROTECTED] wrote: Then again, there are some very talented people with a lot of free time in the Perl community; I wouldn't count it out. That looked to me like a Damian troll, hoping that DC would pop up and

Re: Macro arguments themselves

2003-09-12 Thread Alex Burr
[EMAIL PROTECTED] (Luke Palmer) writes: I would hope the former. However, what about this compile-time integral power macro[1]? macro power ($x, $p) { if $p 0 { { $x * power($x, $p-1) } } else { { 1 } } } That would

Re: Subject: Macro arguments themselve

2003-09-12 Thread Alex Burr
[EMAIL PROTECTED] (Luke Palmer) writes: I would hope the former. However, what about this compile-time integral power macro[1]? macro power ($x, $p) { if $p 0 { { $x * power($x, $p-1) } } else { { 1 } } } That would