Re: Subroutine and Method Introspection

2005-07-24 Thread Sam Vilain
chromatic wrote: A12 and S12 describe introspection on objects and classes. The metaclass instance has the method getmethods() which returns "method descriptors". The design specifies several traits queryable through these descriptors. [...] Currently, there's no way to query these traits

Re: Exposing the Garbage Collector

2005-07-24 Thread Sam Vilain
Piers Cawley wrote: Let's say I have a class, call it Foo which has a bunch of attributes, and I've created a few of them. Then, at runtime I do: eval 'class Foo { has $.a_new_attribute is :default<10> }'; Assuming I've got the syntax right for defaulting an attribute, and lets assume I have,

Re: Do I need "has $.foo;" for accessor-only virtual attributes?

2005-07-24 Thread Stevan Little
On Jul 24, 2005, at 2:40 AM, Sam Vilain wrote: Stevan Little wrote: Yes, we have. One thing to consider is that it is much easier to get the "Role order doesn't matter" thing when they are composed. Once you start keeping the roles around, you run into the possiblity for such things as "next

Re: Database Transactions and STM [was: Re: STM semantics, the Transactional role]

2005-07-24 Thread Yuval Kogman
On Sun, Jul 24, 2005 at 18:50:28 +1200, Sam Vilain wrote: > Sorry for the necro-equine flagellation, but I think STM would have to > support general nesting to be useful. In fact I'd be highly surprised > if the Haskell STM implementation doesn't already support it. Uh, yeah, that's exactly my p

Re: Do I need "has $.foo;" for accessor-only virtual attributes?

2005-07-24 Thread Sam Vilain
Stevan Little wrote: This is extended into the other sigil types; has %.foo; is sugar for this: has Hash $foo; # or has %foo, but really, the point is it's # an implementation detail, right? method foo is rw { return Proxy.new( :FETCH{ $foo }, # or a facade