develooper Front page | perl.module-authors | Postings from November 2003

Re: Class::FakeAttributes -- Opinions Wanted

Thread Previous | Thread Next
From:
A. Pagaltzis
Date:
November 2, 2003 10:07
Subject:
Re: Class::FakeAttributes -- Opinions Wanted
Message ID:
20031102180056.GA2182@klangraum
* Smylers <Smylers@stripey.com> [2003-11-02 18:05]:
> A. Pagaltzis writes:
> > This has been invented by Abigail quite a while ago and is
> > called "inside out objects". See
> > http://www.perlmonks.org/index.pl?node_id=219378
> 
> Thanks for that.  Knowing that Abigail has used this technique
> gives me confidence that it works!

Actually I just noticed it's not even inside out objects. If two
classes in a hierarchy where one is an ancestor of the other both
use ::FakeAttributes, they can *still* trample over each other's
attributes, so you still need to know all your ancestors'
attributes' names (including private attributes).

-- 
Regards,
Aristotle
 
"If you can't laugh at yourself, you don't take life seriously enough."

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About