From: Calamitas Date: 2007-07-18T06:58:52+09:00 Subject: Re: Proposal: runtime-modifying Kernel methods should be keywords On 17/07/07, Charles Oliver Nutter wrote: > It potentially would require that, and there's also the complication > that we may not be able to detect if it's been aliased, if say there's a > call to an aliased "alias_method" for example :) The rabbit hole deepens. Can you explain this? The way I see this, the piece of code that does the actual aliasing is yours, and this piece of code is unaffected by aliasing alias_method or any other dirty trick, so a check in that piece of code should work perfectly for detecting if eval and consorts get aliased. Of course, this is a run time check and not a compile time check, but I think this is what Brent is proposing. Besides, there is no way you can check this at compile time because aliasing eval and consorts can be done in any single eval anywhere in the code. If anything, you can always disallow aliasing alias_method ;-) Peter