Re: Roles and Trust

2005-10-12 Thread Piers Cawley
Ovid <[EMAIL PROTECTED]> writes: > --- Piers Cawley <[EMAIL PROTECTED]> wrote: >> >> How about: >> >> my method SCALAR::attributes($self:) { $$self } >> my method HASH::attributes(%self:) { %self.kv } >> my method ARRAY::attributes(@self:) { [EMAIL PROTECTED] } >> >> method _attributes(

Re: Roles and Trust

2005-10-12 Thread Ovid
--- Piers Cawley <[EMAIL PROTECTED]> wrote: > > How about: > > my method SCALAR::attributes($self:) { $$self } > my method HASH::attributes(%self:) { %self.kv } > my method ARRAY::attributes(@self:) { [EMAIL PROTECTED] } > > method _attributes($attrs) { > my @attributes = $attrs.attr

Re: Roles and Trust

2005-10-10 Thread Piers Cawley
Ovid <[EMAIL PROTECTED]> writes: > Apocalypse 12 has the following to say about roles and trust > (http://www.perl.com/pub/a/2004/04/16/a12.html?page=10) > > It's not clear whether roles should be allowed to grant > trust. In the absence of evidence to the contrary

Re: Roles and Trust

2005-10-05 Thread Ovid
--- Luke Palmer <[EMAIL PROTECTED]> wrote: > sub _attributes($ref) { > my multi attributes ($scalar) { $$scalar } > my multi attributes (@array) { @array } > my multi attributes (%hash) { %hash } > attributes($ref) > } > > That attributes look suspiciously

Re: Roles and Trust

2005-10-05 Thread Luke Palmer
On 10/5/05, Ovid <[EMAIL PROTECTED]> wrote: > sub _attributes { > my ($self, $attrs) = @_; > return $$attrs if UNIVERSAL::isa( $attrs, 'SCALAR' ); > > my @attributes = UNIVERSAL::isa( $attrs, 'HASH' ) > ? %$attrs : @$attrs; > return unless @attributes; > # more code here

Roles and Trust

2005-10-05 Thread Ovid
Apocalypse 12 has the following to say about roles and trust (http://www.perl.com/pub/a/2004/04/16/a12.html?page=10) It's not clear whether roles should be allowed to grant trust. In the absence of evidence to the contrary, I'm inclined to say not. In Perl 5, I recently found