From: Paul F Fraser on 18 Feb 2010 19:34 When a method is undefined, does the code hang around as orphaned code, or is it garbage collected and totally removed, or some other action performed? I am interested in the case of many methods being added for limited use and the effect on code size and performance. Paul F Fraser
From: Yukihiro Matsumoto on 18 Feb 2010 19:39 Hi, In message "Re: System handling of undef_method" on Fri, 19 Feb 2010 09:34:11 +0900, Paul F Fraser <paulf(a)a2zliving.com> writes: |When a method is undefined, does the code hang around as orphaned code, |or is it garbage collected and totally removed, or some other action |performed? If the method is defined in the undef'ing class, the code will be garbage collected. If the method is defined in the superclass, it's just overridden. matz.
|
Pages: 1 Prev: Ruby conditionals subtlety? Next: MiniMagick Problems on 64-bit OS. |