Re: Properties

2003-12-01 Thread Hodges, Paul
--- Larry Wall <[EMAIL PROTECTED]> wrote: > Well, it's not nearly as general as we're making it, but the > inspiration for it comes in part from the "Traits" paper: > > http://www.cse.ogi.edu/~black/publications/TR_CSE_02-012.pdf > > Basically, I'm attempting to take their concept and unify

Re: Properties

2003-12-01 Thread Jonathan Scott Duff
On Mon, Dec 01, 2003 at 10:42:09AM -0500, Hodges, Paul wrote: > So is this a good time to divert this topic into an elaboration of roles? I can wait for A12, but in the mean time ... :-) > So if I want to implement a package of related roles that I commonly use in > our In-House code, such as to

RE: Properties

2003-12-01 Thread Hodges, Paul
> From: Jonathan Scott Duff [mailto:[EMAIL PROTECTED] > On Mon, Dec 01, 2003 at 10:42:09AM -0500, Hodges, Paul wrote: > > > > module IHL::Roles; > > @ISA = 'Exporter'; > > @EXPORT_OK = qw/ fatal verbose allow setvals /; > > > > our role fatal is property { > > has $.fatal is rw; > >

Re: Properties

2003-12-01 Thread Luke Palmer
Hodges, Paul writes: > I assume you're setting the the value, so I think I understand it, but > how about > > sub setvals ($o, [EMAIL PROTECTED]) { > $o but= $_; > $o.$_ = true; > } > > Though I'm still "iffy" about that $o.$_ business. I think > $_(true) i