In Ruby, is there a way to redefine a method without triggering a warning?
-
-
-
Replying to @halorgium @mperham
is there a way to do this atomically across threads in ruby? Another thread could call between undef & redef? unlikely
1 reply 0 retweets 0 likes -
Replying to @jacobrothstein @halorgium
Rule of thumb: never, ever do any metaprogramming after spawning threads. Initialize time only.
1 reply 0 retweets 4 likes -
Replying to @mperham @jacobrothstein
I really want a way to enforce this. And detect redefinition easily.
1 reply 0 retweets 0 likes
it would be pretty easy with a C extension using the trace hooks.
2:47 PM - 23 Nov 2016
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.