On Sun, 18 Dec 2005, David Heinemeier Hansson wrote:
So apparently 1.8.4 is soon forthcoming. We need testing against it. Could
someone help out with that? I believe Ara already checked into some of the
issues, do you know if those are resolved, Ara?
they are not resolved. however, i could only re-produce them on an older
version of freebsd. the box is scheduled to be upgraded this week. my
feeling was that i'd wait for the upgrade to see if that fixed the issue.
a summary of the problem is simply that rails does a lot of this kind of
thing:
def foo
end
alias "bar", "foo"
alias "foobar", "bar"
alias "foo", "foobar"
def foo # new one this time
end
and this causes infinite recursion when double includes happen - which i see
on freebsd but not on linux. the solution is to examine the
const_missing/autoloading that's going on and, more importantly, to avoid
these potential cyclic function calls.
in my case i was able to fix by simply
def __foo
end
alias "bar", "__foo"
alias "foobar", "bar"
alias "foo", "foobar"
def foo # new one this time
end
but then there are plenty of instances of this style.
read earlier threads for more info...
i can look into this more but have some outstanding questions regarding the
purpose of redefining methods that way and the autoloading philosophy which
i'd like to understand before hacking.
regards.
-a
--
===============================================================================
| ara [dot] t [dot] howard [at] gmails [dot] com
| all happiness comes from the desire for others to be happy. all misery
| comes from the desire for oneself to be happy.
| -- bodhicaryavatara
===============================================================================
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core