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

2005-07-17 Thread Sam Vilain
Say I make an "accessor" method for an attribute that doesn't really 'exist'. For instance, a good example of this is the "month_0" vs "month" properties on a date object; I want to make both look equivalent as real properties, but without the users of the class knowing which one is the "real" on

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

2005-07-17 Thread Sam Vilain
Yuval Kogman wrote: everyone gets to choose, and another thing I have in mind is the Transactional role... DBI::Handle does Transactional; To the STM rollbacker and type checker thingy this means that any IO performed by DBI::Handle invoked code is OK - it can be reversed using the Transa

The Use and Abuse of Liskov (was: Type::Class::Haskell does Role)

2005-07-17 Thread Damian Conway
"You keep using that word. I do not think it means what you think it means" -- Inigo Montoya Luke Palmer wrote: >>Recently I discussed MMD with chromatic, and he mentioned two things >>that were very important, in my opinion: >> >>* The Liskov subst

Re: GMC for dummies

2005-07-17 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Sun, 17 Jul 2005 12:08:34 +0200 > What happens when a store creates a cycle? And how would this be > detected? To keep the invariant we can't move the container nor the contained object, *if* both are aggregates. Therefore the po

Re: GMC for dummies

2005-07-17 Thread Nattfodd
Leopold Toetsch wrote: > Nattfodd wrote: > >> Leopold Toetsch wrote: > > >>> 1) pmc_bodies have to be variable sized >> >> >> Oh, I believed that we would use variable-sized pmc only if the gc >> proved to work really well. > > > Well, with fixed sized bodies, we don't need the extra indirection.

Re: Type::Class::Haskell does Role

2005-07-17 Thread Luke Palmer
On 7/17/05, Yuval Kogman <[EMAIL PROTECTED]> wrote: > I have another view. > > The Num role and the Str role both consume the Eq role. When your > class tries to both be a Num and a Str, == conflicts. > > I have two scenarios: > > class Moose does Num does Str { ... } > > # Moos

[perl #36579] [PATCH] added todo to Parrot::Test::PGE (again)

2005-07-17 Thread via RT
# New Ticket Created by Dino Morelli # Please include the string: [perl #36579] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=36579 > This patch replaces the partially-committed ticket #36247, which can be closed. I adde

Re: Punie

2005-07-17 Thread Autrijus Tang
On Tue, Jul 12, 2005 at 12:17:48PM -0700, Allison Randal wrote: > On Jul 12, 2005, at 0:37, Autrijus Tang wrote: > >That's cool. In that case I'll commit the test suite from perl-1.0_16 > >as TODO tests to the Punie tree, if that's okay with you. :) > > Most welcome. I'm following a naming conven

Re: [perl #36574] [PATCH] push, pop, un/shift for resizablebooleanarray

2005-07-17 Thread Leopold Toetsch
Dino Morelli (via RT) wrote: Added new allocation code for resizablebooleanarray. Added push_integer, pop_integer, shift_integer, unshift_integer. Some other things like freeze, thaw and clone added as well because of this. I adapted all of the tests from intlist.t to resizablebooleanarray.t

Re: GMC for dummies

2005-07-17 Thread Leopold Toetsch
Bob Rogers wrote: From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Sat, 16 Jul 2005 11:38:41 +0200 . . . We keep the invariant by several means: . . . c) a write barrier checks pointer stores into aggregates (by just comparing 2 memory addresses - basically) we can d