
Module#find_const can't handle constants being reloaded
Reported by Carl Lerche | July 13th, 2008 @ 03:19 PM
Module#find_const will cache the constant the first time it is found. However, it is not able to handle the situation where the constant is removed then reloaded. The old constant is returned when #find_const is called again.
The consensus is that this is premature optimization and constant caching will be removed for now. In my opinion, any optimization should not be implemented in find_const but in the code that invokes it.
Comments and changes to this ticket
-
Carl Lerche July 13th, 2008 @ 03:24 PM
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »