Le 19/05/2011 23:00, John Rose a écrit :
On May 19, 2011, at 11:11 AM, Charles Oliver Nutter wrote:
I've just landed a newer SwitchPoint-based constant caching mechanism.
https://github.com/jruby/jruby/commit/90be178c96053d201ea2a869bda7feddeedcfa10
Cool! That's one of the key use cases fo
On Thu, May 19, 2011 at 4:00 PM, John Rose wrote:
> Cool! That's one of the key use cases for SwitchPoint envisioned by the
> Expert Group. Please tell us ASAP if something goes wrong with the API!
> (The implementation we can fix, but the API is going more cryogenic as each
> day passes.)
Onl
On May 19, 2011, at 11:11 AM, Charles Oliver Nutter wrote:
> I've just landed a newer SwitchPoint-based constant caching mechanism.
>
> https://github.com/jruby/jruby/commit/90be178c96053d201ea2a869bda7feddeedcfa10
Cool! That's one of the key use cases for SwitchPoint envisioned by the Expert
In Ruby, constants...aren't. They're *mostly* constant, but they have
to be looked up dynamically via the lexical scope and self class
hierarchy. They can be changed after the fact, and class modifications
like mixing in a module later will change the scenery, but these sorts
of changes are very ra