Re: class destruction (evil genius metaprogramming)
by Rick DeNatale other posts by this author
Jun 16 2007 9:42AM messages near this date
Re: class destruction (evil genius metaprogramming)
|
Re: class destruction (evil genius metaprogramming)
On 6/16/07, dblack@[...].net <dblack@[...].net> wrote:
> I do sometimes wonder what would happen if the ancestry array were
> writeable. It could be interesting. I haven't thought through the
> possible pitfalls.
Actually the ancestry array only exists as the return value of the
ancestry method, internally it's a chain of class objects, and module
wrapper's. Some things, like including a module will alter that
chain, although there are restrictions which lead to things like the
double module inclusion problem.
Perhaps evil.rb lets you monkey with the chain, it would seem to be
within its mission.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
Thread:
Giles Bowkett
Rick DeNatale
dblack
Robert Dober
dblack
Robert Dober
Giles Bowkett
dblack
Stephen Smith
Nathan Taylor-Hoover
Giles Bowkett
dblack
Giles Bowkett
Rick DeNatale
dblack
Devin Mullins
dblack
Gregory Brown
Giles Bowkett
|