On Feb 1, 2008 8:56 PM, Peter Karman <[EMAIL PROTECTED]> wrote:

> Wonder if something like this would make a useful Helper:
>
>  sub forget {
>      my $self = shift;
>      my $accessor = shift or croak "need accessor name";
>      $self->$accessor( undef );
>  }
>

I like that a lot.  I think I'll add it to my RDBO sub-class.  Even better,
in my opinion, would be making it the standard interface and deprecating
passing undef to clear the cache.  I agree that that's confusing to read and
asking for trouble.

-sam
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to