From: James Edward Gray II Date: 2006-09-10T00:41:34+09:00 Subject: Re: Thousands of words on Ruby On Sep 9, 2006, at 10:33 AM, Alex Young wrote: > James Edward Gray II wrote: >> On Sep 9, 2006, at 9:41 AM, Alex Young wrote: >>> Ok, so it's a real bodge to try to rename a method before >>> runtime. What happens if we annotate the method to be renamed >>> the next time it's run? We could run the script in question >>> under an environment not totally unlike xmp. The first thing it >>> would do is alter the source file according to the annotation. >>> It would then add an appropriate method_missing to Object to do a >>> rename in the original source file whenever the method was >>> called, and then load() the file. >> And what happens if the execution never calls the given method, >> for whatever reason, or only reaches some of the places it is used? > That's why you run your test suite through it. You do have 100% > line coverage, right? :-) Well it's a clever idea. Show us the prototype. ;) James Edward Gray II