From: Steven Lumos Date: 2007-07-14T05:56:50+09:00 Subject: Re: Proposal: runtime-modifying Kernel methods should be keywords Yukihiro Matsumoto writes: > Hi, > > In message "Re: Proposal: runtime-modifying Kernel methods should be keywords" > on Fri, 13 Jul 2007 15:42:06 +0900, Charles Oliver Nutter writes: > > |I'd say anything that fits both of the following criteria qualifies: > | > |- the feature can't be implemented without knowing how to manipulate > |runtime/implementation-specific structures (and having a way to > |manipulate those structures) > |- the feature can't be wrapped in another method and maintain the same > |behavior as if it were called in the original context > | > |All those listed so far fit these criteria. > > String#gsub ? > > matz. Even if everything mentioned became keywords, wouldn't you still have to worry about extensions? I actually CAN wrap #gsub and set $~ if my wrapper method is written in C, can't I? Steve